Author: danydb
Date: 2013-05-08 01:59:05 +0200 (Wed, 08 May 2013)
New Revision: 5223

Modified:
   phpcompta/trunk/include/class_phpcompta_sql.php
Log:
Throw an exception if trying to use $this->date_format and date_format is not 
defined

Modified: phpcompta/trunk/include/class_phpcompta_sql.php
===================================================================
--- phpcompta/trunk/include/class_phpcompta_sql.php     2013-05-07 23:58:32 UTC 
(rev 5222)
+++ phpcompta/trunk/include/class_phpcompta_sql.php     2013-05-07 23:59:05 UTC 
(rev 5223)
@@ -135,6 +135,7 @@
                        switch ($this->type[$value])
                        {
                                case "date":
+                                       if ($this->date_format=="")             
                                throw new Exception('Format Date invalide');
                                        $par .=$sep. 'to_date($' . $idx . ",'" 
. $this->date_format . "')" ;
                                        break;
                                default:



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