Bug : get_object returns an array of one element instead of an object
This commit is contained in:
parent
52d2dbcf6d
commit
4d43d98eed
1 changed files with 1 additions and 3 deletions
|
|
@ -146,9 +146,7 @@ class @class_name@ @mother_class@
|
|||
$oobj=new @class_name@ ($this->cn);
|
||||
$array=Database::fetch_array($p_ret,$idx);
|
||||
foreach ($array as $idx=>$value) { $oobj->$idx=$value; }
|
||||
$aobj[]=clone $oobj;
|
||||
|
||||
return $aobj;
|
||||
return $oobj;
|
||||
}
|
||||
public function insert() {
|
||||
if ( $this->verify() != 0 ) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue