phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r5100 - phpcompta/tags/rel650/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5100 - phpcompta/tags/rel650/include
Date: Wed, 12 Sep 2012 23:05:13 +0200 (CEST)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]