diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-28 02:16:05 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-28 02:16:05 -0700 |
commit | dab3495751fed06589b7d082e24c96f2188abcc6 (patch) | |
tree | 6e9c54b5b155826fda7e0bfc86b9298c8caff4f7 | |
parent | ac6c43b5fb7b868d3353047f6fcee1978e4a6b85 (diff) | |
download | volse-hubzilla-dab3495751fed06589b7d082e24c96f2188abcc6.tar.gz volse-hubzilla-dab3495751fed06589b7d082e24c96f2188abcc6.tar.bz2 volse-hubzilla-dab3495751fed06589b7d082e24c96f2188abcc6.zip |
check datatype to be sure
-rwxr-xr-x | include/dba/dba_driver.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/dba/dba_driver.php b/include/dba/dba_driver.php index 17f87010a..1905241a7 100755 --- a/include/dba/dba_driver.php +++ b/include/dba/dba_driver.php @@ -260,9 +260,9 @@ function dbg($state) { */ function dbesc($str) { - if(ACTIVE_DBTYPE == DBTYPE_POSTGRES && $str == '0000-00-00 00:00:00') { + if(ACTIVE_DBTYPE == DBTYPE_POSTGRES && $str === '0000-00-00 00:00:00') { $str = NULL_DATE; - } else if(ACTIVE_DBTYPE != DBTYPE_POSTGRES && $str == '0001-01-01 00:00:00') { + } else if(ACTIVE_DBTYPE != DBTYPE_POSTGRES && $str === '0001-01-01 00:00:00') { $str = NULL_DATE; } @@ -280,9 +280,9 @@ function dbunescbin($str) { } function dbescdate($date) { - if(ACTIVE_DBTYPE == DBTYPE_POSTGRES && $date == '0000-00-00 00:00:00') { + if(ACTIVE_DBTYPE == DBTYPE_POSTGRES && $date === '0000-00-00 00:00:00') { $date = NULL_DATE; - } else if(ACTIVE_DBTYPE != DBTYPE_POSTGRES && $date == '0001-01-01 00:00:00') { + } else if(ACTIVE_DBTYPE != DBTYPE_POSTGRES && $date === '0001-01-01 00:00:00') { $date = NULL_DATE; } return $date; |