diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-05-20 18:51:45 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-05-20 18:52:03 +0200 |
commit | cb23bae8d90bc7bbed045e2bf8ef8e38ef232bb3 (patch) | |
tree | deabf98b3fff9caea56618ad3274d049f01d264c /lib | |
parent | f00b57f8be38382b103538813eec9749764658cb (diff) | |
download | nextcloud-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.php | 6 |
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(); + } } /** |