Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions classes/persistents/message.php
Original file line number Diff line number Diff line change
Expand Up @@ -242,17 +242,17 @@ public function get_message_recipient_users($status = 'all', $userproperties = '
*/
public function get_broadcast_draft_recipient_filter() {
if ($this->get_message_scope() !== 'broadcast') {
return '';
return array();
}

$recipients = $this->get_message_draft_recipients();

if (!$recip = reset($recipients)) {
return '';
return array();
}

if (!$filter = $recip->get('recipient_filter')) {
return '';
return array();
}

return @unserialize($filter);
Expand Down