mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-12-18 01:30:34 +00:00
LoginNotify: Simplify returns in getMinExpiredId()
Follows-Up: Iea716e660353f16c47f873fe42edc2aeec1b4346 Change-Id: Ie351a210eea4eaf4101930fb18e6e149d4294ab4
This commit is contained in:
parent
7a424d1fdb
commit
d96e30ec80
|
@ -808,13 +808,12 @@ class LoginNotify implements LoggerAwareInterface {
|
||||||
->limit( 1 )
|
->limit( 1 )
|
||||||
->caller( __METHOD__ )
|
->caller( __METHOD__ )
|
||||||
->fetchRow();
|
->fetchRow();
|
||||||
if ( !$minRow ) {
|
|
||||||
return null;
|
if ( $minRow && ( $minRow->lsn_time_bucket < $this->getMinBucket() ) ) {
|
||||||
} elseif ( $minRow->lsn_time_bucket < $this->getMinBucket() ) {
|
|
||||||
return (int)$minRow->lsn_id;
|
return (int)$minRow->lsn_id;
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue