Throw an exception if trying to use $this->date_format and date_format is not defined

This commit is contained in:
Dany De Bontridder 2013-05-07 23:59:05 +00:00
parent 5907d017d5
commit 45fed547c9

View file

@ -135,6 +135,7 @@ class phpcompta_sql
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: