Function load : give the return type
This commit is contained in:
parent
c9a16035ca
commit
073c0efbef
29 changed files with 45 additions and 40 deletions
|
|
@ -108,7 +108,7 @@ class V_Currency_Last_Value_SQL extends Data_SQL
|
|||
|
||||
}
|
||||
|
||||
public function load()
|
||||
public function load():bool
|
||||
{
|
||||
$sql=" select ";
|
||||
$sep="";
|
||||
|
|
@ -133,13 +133,14 @@ class V_Currency_Last_Value_SQL extends Data_SQL
|
|||
if ($this->cn->count()==0)
|
||||
{
|
||||
$this->$pk=-1;
|
||||
return;
|
||||
return false;
|
||||
}
|
||||
|
||||
foreach ($result[0] as $key=> $value)
|
||||
{
|
||||
$this->$key=$value;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
function seek($cond='', $p_array=null)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue