sforkowany z mirror/friendica
Fixes PHP Warning: " array_unshift() expects parameter 1 to be array, int given"
rodzic
b94f442dd8
commit
adb0b460ef
|
@ -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']);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue