Florianschmidtwelzow has uploaded a new change for review. https://gerrit.wikimedia.org/r/225603
Change subject: Don't try to use isAnon on non-pbject ...................................................................... Don't try to use isAnon on non-pbject Change-Id: Ia1b9028f59f678d6acf4ca82e7a8fca09d02bb54 User::newFromName() can return a boolean instead of an user object, too. --- M includes/specials/SpecialManageGoogleLogin.php 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/GoogleLogin refs/changes/03/225603/1 diff --git a/includes/specials/SpecialManageGoogleLogin.php b/includes/specials/SpecialManageGoogleLogin.php index bab2a92..134be45 100644 --- a/includes/specials/SpecialManageGoogleLogin.php +++ b/includes/specials/SpecialManageGoogleLogin.php @@ -68,7 +68,7 @@ return false; } $checkUser = User::newFromName( $data['username'] ); - if ( $checkUser->isAnon() ) { + if ( !$checkUser || $checkUser->isAnon() ) { return wfMessage( 'googlelogin-manage-notexist', $data['username'] ); } self::$manageableUser = $checkUser; -- To view, visit https://gerrit.wikimedia.org/r/225603 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ia1b9028f59f678d6acf4ca82e7a8fca09d02bb54 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/GoogleLogin Gerrit-Branch: master Gerrit-Owner: Florianschmidtwelzow <florian.schmidt.stargatewis...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits