Add check for missing appinfo in apps settings page

This commit is contained in:
Bart Visscher 2012-09-01 01:14:12 +02:00
parent bb65e173d4
commit 38116c7efa
1 changed files with 4 additions and 0 deletions

View File

@ -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')) {