mirror of
https://github.com/friendica/friendica
synced 2024-12-22 12:40:15 +00:00
Ensure task parameters is an array with at least 1 element in update_1404()
- Address https://github.com/friendica/friendica/issues/10169#issuecomment-827182936
This commit is contained in:
parent
ff94b9a694
commit
57d5a47042
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue