diff --git a/app/Listeners/Menu/ShowInNotifications.php b/app/Listeners/Menu/ShowInNotifications.php index db5168fdc..1c6f5103d 100644 --- a/app/Listeners/Menu/ShowInNotifications.php +++ b/app/Listeners/Menu/ShowInNotifications.php @@ -32,7 +32,12 @@ class ShowInNotifications foreach ($updates as $key => $update) { $prefix = ($key == 'core') ? 'core' : 'module'; - $name = ($prefix == 'core') ? 'Akaunting' : module($key)->getName(); + + if ($prefix == 'module' && ! module($key)) { + continue; + } + + $name = ($prefix == 'core') ? 'Akaunting' : module($key)?->getName(); $new = new DatabaseNotification(); $new->id = $key;