Skip to content

Commit b3070bc

Browse files
authored
Merge pull request #940 from keriati/fix/appmodelcheck
fix: Add check to appModel so websites can be added again
2 parents dcc0f90 + 487cdc4 commit b3070bc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/Application.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ public static function single($appid)
114114
if ($app === null) {
115115
// Try in db for Private App
116116
$appModel = self::where('appid', $appid)->first();
117-
$app = json_decode($appModel->toJson());
117+
if($appModel) {
118+
$app = json_decode($appModel->toJson());
119+
}
118120
}
119121

120122
if ($app === null) {

0 commit comments

Comments
 (0)