aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-26 19:28:04 -0700
committerredmatrix <mike@macgirvin.com>2016-09-26 19:28:04 -0700
commit44a2cc872cb1baa7807376939e2c5bf6f8f63dda (patch)
tree40cdbda019bcc3f100192143b10f3892df40c087
parent4663278f52fd11c1014d13151af2bc6ef1392c7d (diff)
downloadvolse-hubzilla-44a2cc872cb1baa7807376939e2c5bf6f8f63dda.tar.gz
volse-hubzilla-44a2cc872cb1baa7807376939e2c5bf6f8f63dda.tar.bz2
volse-hubzilla-44a2cc872cb1baa7807376939e2c5bf6f8f63dda.zip
apply the same fix to our own DB as we did for hubzilla master and redmatrix.
-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