- Address https://github.com/friendica/friendica/issues/10169#issuecomment-
827182936
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;
}