diff options
author | Habeas Codice <habeascodice@federated.social> | 2014-11-22 09:26:46 -0800 |
---|---|---|
committer | Habeas Codice <habeascodice@federated.social> | 2014-11-22 09:26:46 -0800 |
commit | ecb86dd6b20adf2e7587e5b16f8eb7cd7b8f1b68 (patch) | |
tree | 32c2e378ed81748719796191cdc44c5dbc0735e2 /include/dba | |
parent | cf739c0361cce7f1c454a0e52809fba99cb40e84 (diff) | |
download | volse-hubzilla-ecb86dd6b20adf2e7587e5b16f8eb7cd7b8f1b68.tar.gz volse-hubzilla-ecb86dd6b20adf2e7587e5b16f8eb7cd7b8f1b68.tar.bz2 volse-hubzilla-ecb86dd6b20adf2e7587e5b16f8eb7cd7b8f1b68.zip |
somehow missed this one
was causing problems with pickup messages originating from postgres servers
Diffstat (limited to 'include/dba')
-rwxr-xr-x | include/dba/dba_driver.php | 2 |
1 files changed, 2 insertions, 0 deletions
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); } } |