From: Vincent Petry Date: Mon, 11 Aug 2014 13:32:56 +0000 (+0200) Subject: Fix issue when no apps are enabled X-Git-Tag: v7.0.2RC1~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=35c133143a84a05dc690ef3ce88a1e9c90590c32;p=nextcloud-server.git Fix issue when no apps are enabled Properly initialize $apps array --- diff --git a/lib/private/app.php b/lib/private/app.php index 7bf04f11267..e4b11f982dc 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -172,6 +172,7 @@ class OC_App { if (!$forceRefresh && !empty(self::$enabledAppsCache)) { return self::$enabledAppsCache; } + $apps = array(); $appConfig = \OC::$server->getAppConfig(); $appStatus = $appConfig->getValues(false, 'enabled'); $user = \OC_User::getUser();