dont throw errors when apps dont have types configured

This commit is contained in:
Robin Appelman 2012-05-20 18:51:45 +02:00
parent f00b57f8be
commit cb23bae8d9
1 changed files with 5 additions and 1 deletions

View File

@ -114,7 +114,11 @@ class OC_App{
self::$appTypes=OC_Appconfig::getValues(false,'types');
}
return explode(',',self::$appTypes[$app]);
if(isset(self::$appTypes[$app])){
return explode(',',self::$appTypes[$app]);
}else{
return array();
}
}
/**