Bug : get_object returns an array of one element instead of an object

This commit is contained in:
Dany De Bontridder 2011-09-28 14:11:14 +00:00
parent 52d2dbcf6d
commit 4d43d98eed

View file

@ -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;