an other fix for ADOdb, set Record to empty, if a query returns no row

This commit is contained in:
Ralf Becker 2003-10-21 18:08:22 +00:00
parent 9384c24217
commit f2b0ca5d6d

View File

@ -349,11 +349,12 @@
}
++$this->Row;
if ($this->Query_ID->EOF || !$this->Query_ID->RecordCount())
$this->Record = $this->Query_ID->fields;
if ($this->Query_ID->EOF || !$this->Query_ID->RecordCount() || !is_array($this->Record))
{
return False;
}
$this->Record = $this->Query_ID->fields;
return True;
}