Southparkfan has uploaded a new change for review.
https://gerrit.wikimedia.org/r/279720
Change subject: checkLocalUser: Fix --delete option
......................................................................
checkLocalUser: Fix --delete option
getOption() isn't going to return a boolean true, change the check to
make sure that it's not boolean false.
Change-Id: I009e5110afe77904eda1c6f256b2561736f75761
(cherry picked from commit 823677be0c230dfdc5e0745b3051e7ac5d52af70)
---
M maintenance/checkLocalUser.php
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralAuth
refs/changes/20/279720/1
diff --git a/maintenance/checkLocalUser.php b/maintenance/checkLocalUser.php
index a47c012..45de2fc 100644
--- a/maintenance/checkLocalUser.php
+++ b/maintenance/checkLocalUser.php
@@ -28,7 +28,7 @@
$centralMaster = CentralAuthUser::getCentralDB();
$centralSlave = CentralAuthUser::getCentralSlaveDB();
- if ( $this->getOption( 'delete', false ) === true ) {
+ if ( $this->getOption( 'delete', false ) !== false ) {
$this->dryrun = false;
}
--
To view, visit https://gerrit.wikimedia.org/r/279720
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I009e5110afe77904eda1c6f256b2561736f75761
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: REL1_26
Gerrit-Owner: Southparkfan <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits