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