From 57d5a47042d7627a8f53364959b816093f241ec7 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 31 May 2021 01:12:50 -0400 Subject: [PATCH] Ensure task parameters is an array with at least 1 element in update_1404() - Address https://github.com/friendica/friendica/issues/10169#issuecomment-827182936 --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/update.php b/update.php index 0a97b4e10c..551d208fe4 100644 --- a/update.php +++ b/update.php @@ -835,7 +835,7 @@ function update_1404() while ($task = DBA::fetch($tasks)) { $parameters = json_decode($task['parameter'], true); - if (in_array($parameters[0], [Delivery::MAIL, Delivery::SUGGESTION, Delivery::REMOVAL, Delivery::RELOCATION])) { + if (is_array($parameters) && count($parameters) && in_array($parameters[0], [Delivery::MAIL, Delivery::SUGGESTION, Delivery::REMOVAL, Delivery::RELOCATION])) { continue; }