aboutsummaryrefslogtreecommitdiffstats
path: root/include/dba/dba_driver.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/dba/dba_driver.php')
-rwxr-xr-xinclude/dba/dba_driver.php3
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