fix: Add check to appModel so websites can be added again

This commit is contained in:
Attila Kerekes 2022-11-05 07:02:20 +00:00
parent dcc0f90b23
commit 487cdc483c

View file

@ -114,7 +114,9 @@ class Application extends Model
if ($app === null) {
// Try in db for Private App
$appModel = self::where('appid', $appid)->first();
$app = json_decode($appModel->toJson());
if($appModel) {
$app = json_decode($appModel->toJson());
}
}
if ($app === null) {