diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 56c62451b9..21140b890e 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -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']); }