]> git.mxchange.org Git - friendica.git/commitdiff
Fix wrong use of array_shift in Core\Worker
authorHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Feb 2019 12:11:35 +0000 (07:11 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Mon, 25 Feb 2019 12:11:35 +0000 (07:11 -0500)
src/Core/Worker.php

index 0a97c11c13724d25db490fab2b78cbb63a89bab2..7b661d863fcb76ae4f7fcd6bf5fb12eea137645f 100644 (file)
@@ -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;
                }