Author: danydb
Date: 2012-09-12 23:05:12 +0200 (Wed, 12 Sep 2012)
New Revision: 5100

Modified:
   phpcompta/tags/rel650/include/class_phpcompta_sql.php
Log:
fix bug : when a value is empty then value is n ull

Modified: phpcompta/tags/rel650/include/class_phpcompta_sql.php
===================================================================
--- phpcompta/tags/rel650/include/class_phpcompta_sql.php       2012-09-06 
16:47:29 UTC (rev 5099)
+++ phpcompta/tags/rel650/include/class_phpcompta_sql.php       2012-09-12 
21:05:12 UTC (rev 5100)
@@ -239,13 +239,16 @@
                        {
                                $this->$value=$p_array[$value];
                        }
+                       else
+                       {
+                               $this->$value=null;
+                       }
                }
                return $this;
        }
         function seek($cond='', $p_array=null)
        {
                $sql = "select * from ".$this->table."  $cond";
-               $aobj = array();
                $ret = $this->cn->exec_sql($sql, $p_array);
                return $ret;
        }



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilité en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to