Only getApp if app found

This commit is contained in:
Kode 2022-04-02 15:19:55 +01:00
parent 9bc9c48e06
commit 758c174141
2 changed files with 4 additions and 2 deletions

View file

@ -47,7 +47,9 @@ class ProcessApps implements ShouldQueue
foreach ($items as $item) {
if (! file_exists(app_path('SupportedApps/'.Item::nameFromClass($item->class)))) {
$app = Application::where('class', $item->class)->first();
Application::getApp($app->appid);
if ($app) {
Application::getApp($app->appid);
}
}
}
}

View file

@ -14,7 +14,7 @@ return [
*/
'name' => env('APP_NAME', 'Heimdall'),
'version' => '2.4.9',
'version' => '2.4.10',
/*
|--------------------------------------------------------------------------