Merge pull request #940 from keriati/fix/appmodelcheck
fix: Add check to appModel so websites can be added again
This commit is contained in:
commit
b3070bc8f9
1 changed files with 3 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue