Merge branch 'master' of https://github.com/brkcvn/akaunting into code-clean

This commit is contained in:
Burak Civan
2022-08-17 10:29:24 +03:00
24 changed files with 129 additions and 76 deletions

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;