Skip to content
Snippets Groups Projects
Unverified Commit 95046744 authored by Eileen McNaughton's avatar Eileen McNaughton Committed by GitHub
Browse files

Merge pull request #20989 from mattwire/mailtasks

Fix mailing task when there are no tasks
parents e586838d 407f3e2c
Branches
Tags
No related merge requests found
......@@ -80,10 +80,10 @@ class CRM_Mailing_Task extends CRM_Core_Task {
$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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment