Merge pull request #17606 from owncloud/appstore-timeout
Handle returned null value in app level code
This commit is contained in:
commit
eab1116924
|
@ -173,7 +173,7 @@ class AppSettingsController extends Controller {
|
||||||
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
|
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
|
||||||
$remoteAppEntry = $this->ocsClient->getApplication($app['ocsid'], \OC_Util::getVersion());
|
$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'];
|
$apps[$key]['level'] = $remoteAppEntry['level'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -189,7 +189,7 @@ class AppSettingsController extends Controller {
|
||||||
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
|
if(!array_key_exists('level', $app) && array_key_exists('ocsid', $app)) {
|
||||||
$remoteAppEntry = $this->ocsClient->getApplication($app['ocsid'], \OC_Util::getVersion());
|
$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'];
|
$apps[$key]['level'] = $remoteAppEntry['level'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue