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 /Zotlabs/Daemon/Cron.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 'Zotlabs/Daemon/Cron.php')
-rw-r--r-- | Zotlabs/Daemon/Cron.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Zotlabs/Daemon/Cron.php b/Zotlabs/Daemon/Cron.php index 613c2e705..924667b05 100644 --- a/Zotlabs/Daemon/Cron.php +++ b/Zotlabs/Daemon/Cron.php @@ -43,14 +43,14 @@ class Cron { // expire any expired mail - q("delete from mail where expires != '%s' and expires < %s ", + q("delete from mail where expires > '%s' and expires < %s ", dbesc(NULL_DATE), db_utcnow() ); // expire any expired items - $r = q("select id from item where expires != '%s' and expires < %s + $r = q("select id from item where expires > '%s' and expires < %s and item_deleted = 0 ", dbesc(NULL_DATE), db_utcnow() @@ -64,7 +64,7 @@ class Cron { // delete expired access tokens - $r = q("select atoken_id from atoken where atoken_expires != '%s' and atoken_expires < %s", + $r = q("select atoken_id from atoken where atoken_expires > '%s' and atoken_expires < %s", dbesc(NULL_DATE), db_utcnow() ); |