From: Hypolite Petovan Date: Mon, 25 Feb 2019 12:11:35 +0000 (-0500) Subject: Fix wrong use of array_shift in Core\Worker X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=05d8bf6b5460964b4ed1c7637a9d5599827e0519;p=friendica.git Fix wrong use of array_shift in Core\Worker --- diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 0a97c11c13..7b661d863f 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -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; }