Hoo man has uploaded a new change for review.
https://gerrit.wikimedia.org/r/54634
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
(Untested)
Change-Id: Ie14d06f783619456fd4ce7fa85ab8861d99ffa51
---
M specials/SpecialGlobalUsers.php
1 file changed, 4 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/34/54634/1
diff --git a/specials/SpecialGlobalUsers.php b/specials/SpecialGlobalUsers.php
index 63f7a9e..638ffed 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->getUserCaseDBKey() );
+ }
}
$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: newchange
Gerrit-Change-Id: Ie14d06f783619456fd4ce7fa85ab8861d99ffa51
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Hoo man <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits