Merge pull request #940 from keriati/fix/appmodelcheck

fix: Add check to appModel so websites can be added again
This commit is contained in:
KodeStar 2022-11-05 08:18:54 +00:00 committed by GitHub
commit b3070bc8f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {