Alex Monk has submitted this change and it was merged.

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
---
M maintenance/checkLocalUser.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Alex Monk: Verified; Looks good to me, approved



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/260421
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I009e5110afe77904eda1c6f256b2561736f75761
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralAuth
Gerrit-Branch: master
Gerrit-Owner: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: Alex Monk <kren...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to