diff options
author | friendica <info@friendica.com> | 2014-09-08 20:45:17 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-09-08 20:45:17 -0700 |
commit | b56e49d196b439e94110b468f24c1d5fb1b5bb19 (patch) | |
tree | d16dae919def4e8db60738260eb71c43ac82349d /include/poller.php | |
parent | c6d07feff575862b5db8d05e02be6375e51034c7 (diff) | |
download | volse-hubzilla-b56e49d196b439e94110b468f24c1d5fb1b5bb19.tar.gz volse-hubzilla-b56e49d196b439e94110b468f24c1d5fb1b5bb19.tar.bz2 volse-hubzilla-b56e49d196b439e94110b468f24c1d5fb1b5bb19.zip |
missed one
Diffstat (limited to 'include/poller.php')
-rw-r--r-- | include/poller.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/poller.php b/include/poller.php index fe242d659..55794092e 100644 --- a/include/poller.php +++ b/include/poller.php @@ -35,12 +35,15 @@ function poller_run($argv, $argc){ // expire any expired mail - q("delete from mail where expires != NULL_DATE and expires < UTC_TIMESTAMP() "); + q("delete from mail where expires != '%s' and expires < UTC_TIMESTAMP() ", + dbesc(NULL_DATE) + ); // expire any expired items - $r = q("select id from item where expires != NULL_DATE and expires < UTC_TIMESTAMP() + $r = q("select id from item where expires != '%s' and expires < UTC_TIMESTAMP() and not ( item_restrict & %d ) ", + dbesc(NULL_DATE), intval(ITEM_DELETED) ); if($r) { |