From cb23bae8d90bc7bbed045e2bf8ef8e38ef232bb3 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Sun, 20 May 2012 18:51:45 +0200 Subject: dont throw errors when apps dont have types configured --- lib/app.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/app.php') 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(); + } } /** -- cgit v1.2.3