Make return type consistent

Notification count should return 0 if user has no enabled notification type

Change-Id: Ice8f524349a3b760c00aeac64c3a47ba5ecec8db
This commit is contained in:
bsitu 2013-05-17 14:16:14 -07:00
parent 8f651a3bad
commit 4a581f7882

View file

@ -269,7 +269,7 @@ class MWDbEchoBackend extends MWEchoBackend {
$eventTypesToLoad = EchoNotificationController::getUserEnabledEvents( $user, 'web' );
if ( !$eventTypesToLoad ) {
return false;
return 0;
}
global $wgEchoMaxNotificationCount;