Correct return value of Table_Data_SQL->load : false if nothing found
This commit is contained in:
parent
bed7ccca1c
commit
a6757bce4d
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue