Correct return value of Table_Data_SQL->load : false if nothing found

This commit is contained in:
sparkyx 2022-12-18 00:32:28 +01:00
parent bed7ccca1c
commit a6757bce4d

View file

@ -188,13 +188,14 @@ abstract class Table_Data_SQL extends Data_SQL
if ($this->cn->count()==0)
{
$this->$pk=-1;
return true;
return false;
}
foreach ($result[0] as $key=> $value)
{
$this->$key=$value;
}
return true;
}