CSteipp has submitted this change and it was merged.

Change subject: (bug 46303) Call to a member function getUserCaseDBKey() on a 
non-object
......................................................................


(bug 46303) Call to a member function getUserCaseDBKey() on a non-object

Change-Id: Ie14d06f783619456fd4ce7fa85ab8861d99ffa51
---
M specials/SpecialGlobalUsers.php
1 file changed, 4 insertions(+), 1 deletion(-)

Approvals:
  CSteipp: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/specials/SpecialGlobalUsers.php b/specials/SpecialGlobalUsers.php
index 63f7a9e..4e56632 100644
--- a/specials/SpecialGlobalUsers.php
+++ b/specials/SpecialGlobalUsers.php
@@ -20,7 +20,10 @@
                }
                $rqGroup = $this->getRequest()->getVal( 'group' );
                if ( $rqGroup ) {
-                       $pg->setGroup( Title::newFromText( $rqGroup 
)->getUserCaseDBKey() );
+                               $groupTitle = Title::newFromText( $rqGroup );
+                               if ( $groupTitle ) {
+                                       $pg->setGroup( 
$groupTitle->getPrefixedDBkey() );
+                               }
                }
 
                $rqUsername = $wgContLang->ucfirst( 
$this->getRequest()->getVal( 'username' ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/54634
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie14d06f783619456fd4ce7fa85ab8861d99ffa51
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
Gerrit-Reviewer: CSteipp <[email protected]>
Gerrit-Reviewer: Hoo man <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to