aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/poller.php b/include/poller.php
index e5a274758..3c4e6402c 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -47,7 +47,10 @@ function poller_run($argv, $argc){
q("delete from mail where expires != '0000-00-00 00:00:00' and expires < UTC_TIMESTAMP() ");
- $r = q("select id from item where expires != '0000-00-00 00:00:00' and expires < UTC_TIMESTAMP() ");
+ $r = q("select id from item where expires != '0000-00-00 00:00:00' and expires < UTC_TIMESTAMP()
+ and not ( item_restrict & %d ) ",
+ intval(ITEM_DELETED)
+ );
if($r) {
require_once('include/items.php');
foreach($r as $rr)