diff --git a/src/Plugin/Action/SendQuestionNotifyEmail.php b/src/Plugin/Action/SendQuestionNotifyEmail.php index 7a1a370..d685c0e 100644 --- a/src/Plugin/Action/SendQuestionNotifyEmail.php +++ b/src/Plugin/Action/SendQuestionNotifyEmail.php @@ -31,7 +31,7 @@ public function execute($question = NULL) { */ if ($library = $question->getTargetLibrary()) { $recipients = array_merge($recipients, $this->getGroupRecipients($library)); - } else if ($channel = $question->getChannel()) { + } else if (($channel = $question->getChannel()) && !empty($this->getChannelRecipients($channel))) { $recipients = array_merge($recipients, $this->getChannelRecipients($channel)); } else if ($city = $question->getMunicipality()) { $recipients = array_merge($recipients, $this->getGroupRecipients($city));