Skip to content

Commit

Permalink
Merge pull request #20989 from mattwire/mailtasks
Browse files Browse the repository at this point in the history
Fix mailing task when there are no tasks
  • Loading branch information
eileenmcnaughton authored Aug 6, 2021
2 parents e586838 + 407f3e2 commit 9504674
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CRM/Mailing/Task.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public static function getTask($value) {
$value = self::TASK_PRINT;
}

return [
self::$_tasks[$value]['class'],
self::$_tasks[$value]['result'],
];
if (isset(self::$_tasks[$value])) {
return [[self::$_tasks[$value]['class']], self::$_tasks[$value]['result']];
}
return [[], NULL];
}

}

0 comments on commit 9504674

Please sign in to comment.