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:44 +0200 |
commit | 3775c0d8b222d1f53ec7759d32fc63f20e99d1e1 (patch) | |
tree | 28fc7e5c8874b37731c6a04ea4414b087da0d67f | |
parent | 3b4c47c52e1d8d45949806fd7d248ade7592e6d1 (diff) | |
download | nextcloud-server-3775c0d8b222d1f53ec7759d32fc63f20e99d1e1.tar.gz nextcloud-server-3775c0d8b222d1f53ec7759d32fc63f20e99d1e1.zip |
dont throw errors when apps dont have types configured
-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(); + } } /** |