fixed module update notification issue..

This commit is contained in:
Cüneyt Şentürk 2022-08-15 11:15:11 +03:00
parent c9dd7a9384
commit 6ad9ab73dd

View File

@ -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;