Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given"

This commit is contained in:
Michael 2021-03-24 19:52:53 +00:00
parent b94f442dd8
commit adb0b460ef

View file

@ -311,6 +311,10 @@ class Worker
}
$argv = json_decode($queue['parameter'], true);
if (!is_array($argv)) {
$argv = [];
}
if (!empty($queue['command'])) {
array_unshift($argv, $queue['command']);
}