diff options
Diffstat (limited to 'includes/mail/EmailNotification.php')
-rw-r--r-- | includes/mail/EmailNotification.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/mail/EmailNotification.php b/includes/mail/EmailNotification.php index 8a089f69307d..76a7760d76b0 100644 --- a/includes/mail/EmailNotification.php +++ b/includes/mail/EmailNotification.php @@ -154,7 +154,7 @@ class EmailNotification { // If nobody is watching the page, and there are no users notified on all changes // don't bother creating a job/trying to send emails, unless it's a // talk page with an applicable notification. - if ( !count( $watchers ) && !count( $wgUsersNotifiedOnAllChanges ) ) { + if ( $watchers === [] && !count( $wgUsersNotifiedOnAllChanges ) ) { $sendEmail = false; // Only send notification for non minor edits, unless $wgEnotifMinorEdits if ( !$minorEdit || ( $wgEnotifMinorEdits && !$editor->isAllowed( 'nominornewtalk' ) ) ) { |