diff options
author | redmatrix <mike@macgirvin.com> | 2016-09-25 17:06:13 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-09-25 17:06:13 -0700 |
commit | fb9544badd66043bf7ee5a7566ba288ad7da29fa (patch) | |
tree | 3bdb33ed9eef9101f1d6d6972ac9411051b988ce /include/import.php | |
parent | 4e85bc66b8a5f5347ae15dda229f028d31b58469 (diff) | |
download | volse-hubzilla-fb9544badd66043bf7ee5a7566ba288ad7da29fa.tar.gz volse-hubzilla-fb9544badd66043bf7ee5a7566ba288ad7da29fa.tar.bz2 volse-hubzilla-fb9544badd66043bf7ee5a7566ba288ad7da29fa.zip |
null_date conversion; phase 1
Diffstat (limited to 'include/import.php')
-rw-r--r-- | include/import.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/import.php b/include/import.php index ddffb2ac3..3b434c935 100644 --- a/include/import.php +++ b/include/import.php @@ -422,9 +422,9 @@ function sync_apps($channel,$apps) { ); } - if(! $app['app_created'] || $app['app_created'] === NULL_DATE) + if((! $app['app_created']) || ($app['app_created'] <= NULL_DATE)) $app['app_created'] = datetime_convert(); - if(! $app['app_edited'] || $app['app_edited'] === NULL_DATE) + if((! $app['app_edited']) || ($app['app_edited'] <= NULL_DATE)) $app['app_edited'] = datetime_convert(); $app['app_channel'] = $channel['channel_id']; @@ -536,9 +536,9 @@ function sync_chatrooms($channel,$chatrooms) { unset($chatroom['cr_aid']); unset($chatroom['cr_uid']); - if(! $chatroom['cr_created'] || $chatroom['cr_created'] === NULL_DATE) + if((! $chatroom['cr_created']) || ($chatroom['cr_created'] <= NULL_DATE)) $chatroom['cr_created'] = datetime_convert(); - if(! $chatroom['cr_edited'] || $chatroom['cr_edited'] === NULL_DATE) + if((! $chatroom['cr_edited']) || ($chatroom['cr_edited'] <= NULL_DATE)) $chatroom['cr_edited'] = datetime_convert(); $chatroom['cr_aid'] = $channel['channel_account_id']; |