From 38116c7efa2b922c2fa0eaa48eb538e8bb420f57 Mon Sep 17 00:00:00 2001 From: Bart Visscher <bartv@thisnet.nl> Date: Sat, 1 Sep 2012 01:14:12 +0200 Subject: [PATCH] Add check for missing appinfo in apps settings page --- settings/apps.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/settings/apps.php b/settings/apps.php index 27bbcc9ada..7e21973805 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')) { -- GitLab