missed one
This commit is contained in:
parent
c6d07feff5
commit
b56e49d196
@ -35,12 +35,15 @@ function poller_run($argv, $argc){
|
|||||||
|
|
||||||
// expire any expired mail
|
// 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
|
// 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 ) ",
|
and not ( item_restrict & %d ) ",
|
||||||
|
dbesc(NULL_DATE),
|
||||||
intval(ITEM_DELETED)
|
intval(ITEM_DELETED)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
|
Reference in New Issue
Block a user