exception: Add missing early return for UserNotLoggedIn error page
[lhc/web/wiklou.git] / includes / exception / UserNotLoggedIn.php
index 7a99765..246c944 100644 (file)
@@ -80,9 +80,10 @@ class UserNotLoggedIn extends ErrorPageError {
                // since the message may not be compatible.
                if ( !in_array( $this->msg, LoginHelper::getValidErrorMessages() ) ) {
                        parent::report();
+                       return;
                }
 
-               // Message is valid. Redirec to Special:Userlogin
+               // Message is valid. Redirect to Special:Userlogin
 
                $context = RequestContext::getMain();