@@ -187,7 +187,7 @@ discard block |
||
187 | 187 | } |
188 | 188 | } |
189 | 189 | |
190 | - $unnotified = array_filter($this->members['watching'], function ($member) { |
|
190 | + $unnotified = array_filter($this->members['watching'], function($member) { |
|
191 | 191 | return empty($member['sent']); |
192 | 192 | }); |
193 | 193 | |
@@ -196,7 +196,7 @@ discard block |
||
196 | 196 | if ($type == 'edit' || !empty($this->_details['respawns'])) |
197 | 197 | { |
198 | 198 | // Notifications about modified posts only go to members who were mentioned or quoted |
199 | - $this->members['watching'] = $type == 'edit' ? array(): $unnotified; |
|
199 | + $this->members['watching'] = $type == 'edit' ? array() : $unnotified; |
|
200 | 200 | |
201 | 201 | // If this post has no quotes or mentions, just delete any obsolete alerts and bail out. |
202 | 202 | if (empty($this->members['quoted']) && empty($this->members['mentioned'])) |
@@ -512,8 +512,7 @@ discard block |
||
512 | 512 | if (!empty($member_data['id_topic']) && $type != 'topic' && !empty($this->prefs[$member_id])) |
513 | 513 | { |
514 | 514 | $pref = !empty($this->prefs[$member_id]['topic_notify_' . $topicOptions['id']]) ? |
515 | - $this->prefs[$member_id]['topic_notify_' . $topicOptions['id']] : |
|
516 | - (!empty($this->prefs[$member_id]['topic_notify']) ? $this->prefs[$member_id]['topic_notify'] : 0); |
|
515 | + $this->prefs[$member_id]['topic_notify_' . $topicOptions['id']] : (!empty($this->prefs[$member_id]['topic_notify']) ? $this->prefs[$member_id]['topic_notify'] : 0); |
|
517 | 516 | |
518 | 517 | $message_type = 'notification_' . $type; |
519 | 518 | |
@@ -532,8 +531,7 @@ discard block |
||
532 | 531 | elseif ($type == 'topic') |
533 | 532 | { |
534 | 533 | $pref = !empty($this->prefs[$member_id]['board_notify_' . $topicOptions['board']]) ? |
535 | - $this->prefs[$member_id]['board_notify_' . $topicOptions['board']] : |
|
536 | - (!empty($this->prefs[$member_id]['board_notify']) ? $this->prefs[$member_id]['board_notify'] : 0); |
|
534 | + $this->prefs[$member_id]['board_notify_' . $topicOptions['board']] : (!empty($this->prefs[$member_id]['board_notify']) ? $this->prefs[$member_id]['board_notify'] : 0); |
|
537 | 535 | |
538 | 536 | $content_type = 'board'; |
539 | 537 |