Skip to content

Commit e3000bb

Browse files
authored
[5.1] Followup convert mod_messages to service provider #42735 (#42906)
1 parent 7fdf520 commit e3000bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

administrator/modules/mod_messages/src/Helper/MessagesHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ public function getUnreadMessagesCount(Registry $params, AdministratorApplicatio
4949

5050
return \count($messages);
5151
} catch (\RuntimeException $e) {
52-
$messages = [];
53-
5452
// Still render the error message from the Exception object
5553
$app->enqueueMessage($e->getMessage(), 'error');
54+
55+
return 0;
5656
}
5757
}
5858
}

0 commit comments

Comments
 (0)