From: Robin Appelman Date: Sun, 20 May 2012 16:51:45 +0000 (+0200) Subject: dont throw errors when apps dont have types configured X-Git-Tag: v4.5.0beta1~74^2~430^2~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb23bae8d90bc7bbed045e2bf8ef8e38ef232bb3;p=nextcloud-server.git dont throw errors when apps dont have types configured --- 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(); + } } /**