From a32eac14774bde04d0a9a1ad516423e229f4b80c 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 7bf04f1126..e4b11f982d 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();