diff --git a/include/class_phpcompta_sql.php b/include/class_phpcompta_sql.php index 9db2c74b4..2f86de007 100644 --- a/include/class_phpcompta_sql.php +++ b/include/class_phpcompta_sql.php @@ -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: