X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FExpire.php;h=7a636499bdafde0ae507b3f64389f6ae2a644e1c;hb=f12c56f81776779a1c14a8edb97ce8d98c9e8e86;hp=d3b895f440dc44ea6f76cc437ee3cf1ce1b6da7a;hpb=53e38b03130ea798bba44db44ccb7f331dc4b91d;p=friendica.git diff --git a/src/Worker/Expire.php b/src/Worker/Expire.php index d3b895f440..7a636499bd 100644 --- a/src/Worker/Expire.php +++ b/src/Worker/Expire.php @@ -59,10 +59,10 @@ class Expire Logger::notice('start expiry'); - $r = DBA::p("SELECT `uid`, `username` FROM `user` WHERE `expire` != 0"); + $r = DBA::select('user', ['uid', 'username'], ["`expire` != ?", 0]); while ($row = DBA::fetch($r)) { Logger::info('Calling expiry', ['user' => $row['uid'], 'username' => $row['username']]); - Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true], + Worker::add(['priority' => $a->getQueueValue('priority'), 'created' => $a->getQueueValue('created'), 'dont_fork' => true], 'Expire', (int)$row['uid']); } DBA::close($r); @@ -70,7 +70,7 @@ class Expire Logger::notice('calling hooks'); foreach (Hook::getByName('expire') as $hook) { Logger::info('Calling expire', ['hook' => $hook[1]]); - Worker::add(['priority' => $a->queue['priority'], 'created' => $a->queue['created'], 'dont_fork' => true], + Worker::add(['priority' => $a->getQueueValue('priority'), 'created' => $a->getQueueValue('created'), 'dont_fork' => true], 'Expire', 'hook', $hook[1]); }