mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-09-24 02:39:33 +00:00
Make return type consistent
Notification count should return 0 if user has no enabled notification type Change-Id: Ice8f524349a3b760c00aeac64c3a47ba5ecec8db
This commit is contained in:
parent
8f651a3bad
commit
4a581f7882
|
@ -269,7 +269,7 @@ class MWDbEchoBackend extends MWEchoBackend {
|
|||
$eventTypesToLoad = EchoNotificationController::getUserEnabledEvents( $user, 'web' );
|
||||
|
||||
if ( !$eventTypesToLoad ) {
|
||||
return false;
|
||||
return 0;
|
||||
}
|
||||
|
||||
global $wgEchoMaxNotificationCount;
|
||||
|
|
Loading…
Reference in a new issue