diff options
author | Morris Jobke <hey@morrisjobke.de> | 2015-07-14 08:57:37 +0200 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2015-07-14 08:57:37 +0200 |
commit | eab11169244d06eae0be869874f28db652f7ec6b (patch) | |
tree | dfa3a50939cd142bb83cba1fc3631898a858911f | |
parent | c601fb8181f8f0e71824a789f3d624d094b6552a (diff) | |
parent | 533a23611a09d83baa0e909db30a68f9edae3183 (diff) | |
download | nextcloud-server-eab11169244d06eae0be869874f28db652f7ec6b.tar.gz nextcloud-server-eab11169244d06eae0be869874f28db652f7ec6b.zip |
Merge pull request #17606 from owncloud/appstore-timeout
Handle returned null value in app level code
-rw-r--r-- | settings/controller/appsettingscontroller.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/settings/controller/appsettingscontroller.php b/settings/controller/appsettingscontroller.php index 6803985d5db..f5cb043da20 100644 --- a/settings/controller/appsettingscontroller.php +++ b/settings/controller/appsettingscontroller.php @@ -173,7 +173,7 @@ class AppSettingsController extends Controller { if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) { $remoteAppEntry = $this->ocsClient->getApplication($app['ocsid'], \OC_Util::getVersion()); - if(array_key_exists('level', $remoteAppEntry)) { + if(is_array($remoteAppEntry) && array_key_exists('level', $remoteAppEntry)) { $apps[$key]['level'] = $remoteAppEntry['level']; } } @@ -189,7 +189,7 @@ class AppSettingsController extends Controller { if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) { $remoteAppEntry = $this->ocsClient->getApplication($app['ocsid'], \OC_Util::getVersion()); - if(array_key_exists('level', $remoteAppEntry)) { + if(is_array($remoteAppEntry) && array_key_exists('level', $remoteAppEntry)) { $apps[$key]['level'] = $remoteAppEntry['level']; } } |