From 44a2cc872cb1baa7807376939e2c5bf6f8f63dda Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 26 Sep 2016 19:28:04 -0700 Subject: apply the same fix to our own DB as we did for hubzilla master and redmatrix. --- include/dba/dba_driver.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/dba') 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 -- cgit v1.2.3