X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=inline;f=include%2Fpoller.php;h=07076508ff4b233005ccc32d6c27ac96cc04fb88;hb=0ee9ae23d75d9f15fd37fb2ea118649dfe92aee0;hp=fd2a0af8f9cd8531a93eef1b7b53e41dd93b243a;hpb=d6b446d63ffe589429394b5937b67ec666bbe219;p=friendica.git diff --git a/include/poller.php b/include/poller.php index fd2a0af8f9..07076508ff 100644 --- a/include/poller.php +++ b/include/poller.php @@ -38,6 +38,12 @@ function poller_run($argv, $argc){ proc_run('php',"include/queue.php"); + // expire any expired accounts + + q("UPDATE user SET `account_expired` = 1 where `account_expired` = 0 + AND `account_expires_on` != '0000-00-00 00:00:00' + AND `account_expires_on` < UTC_TIMESTAMP() "); + // once daily run expire in background $d1 = get_config('system','last_expire_day');