]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Worker.php
Coding standards
[friendica.git] / src / Core / Worker.php
index 56c62451b9bfb8d17df722013ea7b00c2d865b05..f21513f33c33c72f2f71cae0b91189b5bdda1577 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -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']);
                }