mirror of
https://github.com/friendica/friendica
synced 2024-11-19 20:23:40 +00:00
Fix wrong use of array_shift in Core\Worker
This commit is contained in:
parent
f597f3b378
commit
05d8bf6b54
1 changed files with 1 additions and 1 deletions
|
@ -850,7 +850,7 @@ class Worker
|
|||
}
|
||||
|
||||
if (!empty($waiting)) {
|
||||
$priority = array_shift(array_keys($waiting));
|
||||
$priority = array_keys($waiting)[0];
|
||||
Logger::info('No underassigned priority found, now taking the highest priority.', ['priority' => $priority]);
|
||||
return $priority;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue