MaxSem has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/373699 )

Change subject: Fix check
......................................................................

Fix check

Bug: T173888
Change-Id: I2643f7cbcdf6c9ad8dff8b6369a5ba6e402684b3
---
M includes/LoginNotify.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LoginNotify 
refs/changes/99/373699/1

diff --git a/includes/LoginNotify.php b/includes/LoginNotify.php
index 06376f1..aa59964 100644
--- a/includes/LoginNotify.php
+++ b/includes/LoginNotify.php
@@ -292,9 +292,9 @@
                                                $dbrLocal
                                        );
 
-                                       if ( $res ) {
+                                       if ( $res === self::USER_KNOWN ) {
                                                $lb->reuseConnection( $dbrLocal 
);
-                                               return self::USER_KNOWN;
+                                               return $res;
                                        }
                                        if ( $result === self::USER_NO_INFO
                                                 && 
$this->userHasCheckUserData( $user->getId(), $dbr )

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2643f7cbcdf6c9ad8dff8b6369a5ba6e402684b3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LoginNotify
Gerrit-Branch: master
Gerrit-Owner: MaxSem <[email protected]>

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

Reply via email to