mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 04:17:39 +01:00
Fixed mail module detection
This commit is contained in:
parent
ab5feaab51
commit
72b3f79bfe
@ -285,7 +285,7 @@ humhub.module('notification', function (module, require, $) {
|
||||
|
||||
// Workaround to include Mail Notification into Title
|
||||
// Mail Module triggers also `humhub:modules:notification:UpdateTitleNotificationCount` on New Messages
|
||||
if (humhub.modules.mail.notification.getNewMessageCount) {
|
||||
if (humhub.modules.mail && humhub.modules.mail.notification && humhub.modules.mail.notification.getNewMessageCount) {
|
||||
$count += humhub.modules.mail.notification.getNewMessageCount();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user