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 3b4c47c52e
commit 3775c0d8b2
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();
}
}
/**