Skip to content

Commit

Permalink
Merge pull request #940 from keriati/fix/appmodelcheck
Browse files Browse the repository at this point in the history
fix: Add check to appModel so websites can be added again
  • Loading branch information
KodeStar authored Nov 5, 2022
2 parents dcc0f90 + 487cdc4 commit b3070bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ public static function single($appid)
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) {
Expand Down

0 comments on commit b3070bc

Please sign in to comment.