diff --git a/Hooks.php b/Hooks.php index 5646e7553..33a3f0248 100644 --- a/Hooks.php +++ b/Hooks.php @@ -665,7 +665,8 @@ class EchoHooks { global $wgEchoNotifications; // If the user has the notifications flyout turned on and is receiving // notifications for talk page messages, disable the orange-bar-style notice. - if ( $recipient->getOption( 'echo-notify-show-link' ) + if ( $recipient->isLoggedIn() + && $recipient->getOption( 'echo-notify-show-link' ) && isset( $wgEchoNotifications['edit-user-talk'] ) ) { // hide orange bar