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/feedutils.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/feedutils.php')
-rw-r--r-- | include/feedutils.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/feedutils.php b/include/feedutils.php index 01ec0687e..1d58ec317 100644 --- a/include/feedutils.php +++ b/include/feedutils.php @@ -33,7 +33,7 @@ function get_public_feed($channel, $params) { // put a sane lower limit on feed requests if not specified -// if($params['begin'] === NULL_DATE) +// if($params['begin'] <= NULL_DATE) // $params['begin'] = datetime_convert('UTC','UTC','now - 1 month'); switch($params['type']) { @@ -884,7 +884,7 @@ function consume_feed($xml, $importer, &$contact, $pass = 0) { $datarray['owner_xchan'] = $contact['xchan_hash']; - if(array_key_exists('created',$datarray) && $datarray['created'] != NULL_DATE && $expire_days) { + if(array_key_exists('created',$datarray) && $datarray['created'] > NULL_DATE && $expire_days) { $t1 = $datarray['created']; $t2 = datetime_convert('UTC','UTC','now - ' . $expire_days . 'days'); if($t1 < $t2) { |