From 35c133143a84a05dc690ef3ce88a1e9c90590c32 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 11 Aug 2014 15:32:56 +0200 Subject: [PATCH] Fix issue when no apps are enabled Properly initialize $apps array --- lib/private/app.php | 1 + 1 file changed, 1 insertion(+) 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(); -- 2.39.5