summaryrefslogtreecommitdiffstats
path: root/settings/apps.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-09-01 01:14:12 +0200
committerBart Visscher <bartv@thisnet.nl>2012-09-03 21:51:32 +0200
commit38116c7efa2b922c2fa0eaa48eb538e8bb420f57 (patch)
tree759cf01f4170a86cc8c7845344d45d97e05ec64e /settings/apps.php
parentbb65e173d416fb91800ebe9d63fe8d3d519c0164 (diff)
downloadnextcloud-server-38116c7efa2b922c2fa0eaa48eb538e8bb420f57.tar.gz
nextcloud-server-38116c7efa2b922c2fa0eaa48eb538e8bb420f57.zip
Add check for missing appinfo in apps settings page
Diffstat (limited to 'settings/apps.php')
-rw-r--r--settings/apps.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/settings/apps.php b/settings/apps.php
index 27bbcc9adab..7e21973805f 100644
--- a/settings/apps.php
+++ b/settings/apps.php
@@ -38,6 +38,10 @@ $blacklist=array('files');//we dont want to show configuration for these
foreach($registeredApps as $app){
if(array_search($app,$blacklist)===false){
$info=OC_App::getAppInfo($app);
+ if (!isset($info['name'])) {
+ OC_Log::write('core','App id "'.$app.'" has no name in appinfo',OC_Log::ERROR);
+ continue;
+ }
$active=(OC_Appconfig::getValue($app,'enabled','no')=='yes')?true:false;
$info['active']=$active;
if(isset($info['shipped']) and ($info['shipped']=='true')) {