Function load : give the return type
This commit is contained in:
parent
c9a16035ca
commit
073c0efbef
29 changed files with 45 additions and 40 deletions
|
|
@ -63,7 +63,7 @@ class V_Contact_SQL extends Data_SQL
|
|||
throw new Exception("not implemented");
|
||||
}
|
||||
|
||||
function load()
|
||||
function load():bool
|
||||
{
|
||||
$array=$this->cn->get_row("select * from ".$this->table." where f_id=$1",array($this->f_id));
|
||||
if (empty ($array) ) { $this->f_id=-1;return false;}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue