From ecb86dd6b20adf2e7587e5b16f8eb7cd7b8f1b68 Mon Sep 17 00:00:00 2001 From: Habeas Codice Date: Sat, 22 Nov 2014 09:26:46 -0800 Subject: somehow missed this one was causing problems with pickup messages originating from postgres servers --- include/dba/dba_driver.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/dba/dba_driver.php') diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index 1bb45b06d..a62a5e6e2 100755 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -341,6 +341,8 @@ function dbesc_array_cb(&$item, $key) { if(is_string($item)) { if($item == '0000-00-00 00:00:00' && ACTIVE_DBTYPE == DBTYPE_POSTGRES) $item = '0001-01-01 00:00:00'; + else if($item == '0001-01-01 00:00:00' && ACTIVE_DBTYPE == DBTYPE_MYSQL) + $item = '0000-00-00 00:00:00'; $item = dbesc($item); } } -- cgit v1.2.3