aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/app.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index e3e9df0e008..8ec042ddd60 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -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();
+ }
}
/**