aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-05-20 18:51:45 +0200
committerRobin Appelman <icewind@owncloud.com>2012-05-20 18:52:03 +0200
commitcb23bae8d90bc7bbed045e2bf8ef8e38ef232bb3 (patch)
treedeabf98b3fff9caea56618ad3274d049f01d264c /lib
parentf00b57f8be38382b103538813eec9749764658cb (diff)
downloadnextcloud-server-cb23bae8d90bc7bbed045e2bf8ef8e38ef232bb3.tar.gz
nextcloud-server-cb23bae8d90bc7bbed045e2bf8ef8e38ef232bb3.zip
dont throw errors when apps dont have types configured
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();
+ }
}
/**