From 487cdc483c1f1b98207dcf8ff1fa8cbb356a69a2 Mon Sep 17 00:00:00 2001 From: Attila Kerekes Date: Sat, 5 Nov 2022 07:02:20 +0000 Subject: [PATCH] fix: Add check to appModel so websites can be added again --- app/Application.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Application.php b/app/Application.php index 8f90355b..55322616 100644 --- a/app/Application.php +++ b/app/Application.php @@ -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) {