mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
ApiEchoNotifications: Don't add wikis with no timestamp
This should prevent fatals in the sort-by-timestamp code farther down, and also prevent incorrect output. Bug: T139112 Change-Id: I6480b2e751594ba3392322f40e950f95ae702104
This commit is contained in:
parent
984441f8d9
commit
f62106f740
|
@ -346,7 +346,7 @@ class ApiEchoNotifications extends ApiCrossWikiBase {
|
|||
}
|
||||
}
|
||||
|
||||
$wikis = array_keys( $countsByWiki );
|
||||
$wikis = array_keys( $timestampsByWiki );
|
||||
$count = array_sum( $countsByWiki );
|
||||
$maxTimestamp = new MWTimestamp( max( $timestampsByWiki ) );
|
||||
$timestampsByWiki = array_map( function ( $ts ) {
|
||||
|
|
Loading…
Reference in a new issue