From 6ad9ab73dd3458106a3a1c647ee983bdc2038f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Mon, 15 Aug 2022 11:15:11 +0300 Subject: [PATCH] fixed module update notification issue.. --- app/Listeners/Menu/ShowInNotifications.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;