Merge branch 'akaunting:master' into master

This commit is contained in:
Burak Civan 2022-08-15 11:49:55 +03:00 committed by GitHub
commit 166f7f53bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,12 @@ class ShowInNotifications
foreach ($updates as $key => $update) { foreach ($updates as $key => $update) {
$prefix = ($key == 'core') ? 'core' : 'module'; $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 = new DatabaseNotification();
$new->id = $key; $new->id = $key;