Avoid implict User::__toString in SpecialContributions.php
authorumherirrender <umherirrender_de.wp@web.de>
Tue, 15 Apr 2014 18:27:34 +0000 (20:27 +0200)
committerUmherirrender <umherirrender_de.wp@web.de>
Tue, 15 Apr 2014 19:11:24 +0000 (19:11 +0000)
Follow-Up: Ie07001e75a9732f727930f8f367bba8feb395b3e
Change-Id: Ibe24bbe6d1cd7a0148353f1aa9cf6f11109dc1de

includes/specials/SpecialContributions.php

index f20355b..2c91805 100644 (file)
@@ -245,7 +245,7 @@ class SpecialContributions extends IncludableSpecialPage {
        protected function contributionsSub( $userObj ) {
                if ( $userObj->isAnon() ) {
                        // Show a warning message that the user being searched for doesn't exists
-                       if ( !User::isIP( $userObj ) ) {
+                       if ( !User::isIP( $userObj->getName() ) ) {
                                $this->getOutput()->wrapWikiMsg(
                                        "<div class=\"mw-userpage-userdoesnotexist error\">\n\$1\n</div>",
                                        array(