mirror of
https://github.com/friendica/friendica
synced 2024-12-23 17:20:16 +00:00
Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given"
This commit is contained in:
parent
b94f442dd8
commit
adb0b460ef
1 changed files with 4 additions and 0 deletions
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue