diff options
Diffstat (limited to 'include/dba')
-rwxr-xr-x | include/dba/dba_driver.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index 2cbdd529d..529cc003f 100755 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -262,6 +262,9 @@ function dbg($state) { */ function dbesc($str) { + if(is_null_date($str)) + $str = NULL_DATE; + if(\DBA::$dba && \DBA::$dba->connected) return(\DBA::$dba->escape($str)); else |