Author: danydb
Date: 2011-09-28 16:11:14 +0200 (Wed, 28 Sep 2011)
New Revision: 4206

Modified:
   phpcompta/trunk/dev/manage-code/create-file/create_phpclass.py
Log:
Bug : get_object returns an array of one element instead of an object

Modified: phpcompta/trunk/dev/manage-code/create-file/create_phpclass.py
===================================================================
--- phpcompta/trunk/dev/manage-code/create-file/create_phpclass.py      
2011-09-28 14:03:19 UTC (rev 4205)
+++ phpcompta/trunk/dev/manage-code/create-file/create_phpclass.py      
2011-09-28 14:11:14 UTC (rev 4206)
@@ -146,9 +146,7 @@
      $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;


_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to