Throw an exception if trying to use $this->date_format and date_format is not defined
This commit is contained in:
parent
5907d017d5
commit
45fed547c9
1 changed files with 1 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue