Skip to content

Commit ac8371a

Browse files
committed
Merge branch 'master' of [email protected]:ColdTrick/questions.git
2 parents a7d4e43 + 60baae9 commit ac8371a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

classes/ColdTrick/Questions/Notifications/CreateAnswerNotificationEventHandler.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,11 @@ protected function getNotificationBody(\ElggUser $recipient, string $method): st
4040
protected function getQuestion(): \ElggQuestion {
4141
return $this->event->getObject()->getContainerEntity();
4242
}
43+
44+
/**
45+
* {@inheritDoc}
46+
*/
47+
public static function isConfigurableByUser(): bool {
48+
return false;
49+
}
4350
}

classes/ColdTrick/Questions/Notifications/CreateQuestionNotificationEventHandler.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,9 @@ public function getSubscriptions(): array {
4545
];
4646
$experts = elgg_trigger_plugin_hook('notify_experts', 'questions', $params, $experts);
4747
if (!is_array($experts)) {
48-
return [];
48+
return $result;
4949
}
5050

51-
$result = [];
5251
foreach ($experts as $expert) {
5352
if (!$expert instanceof \ElggUser) {
5453
continue;

0 commit comments

Comments
 (0)