summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-08-11 15:32:56 +0200
committerVincent Petry <pvince81@owncloud.com>2014-08-11 20:36:51 +0200
commita32eac14774bde04d0a9a1ad516423e229f4b80c (patch)
treed3ae70495340c9cfd712c92ee4a37e4321c0925e /lib
parent6aa8693198f516b7063e692d767a841ca7bd9e5c (diff)
downloadnextcloud-server-a32eac14774bde04d0a9a1ad516423e229f4b80c.tar.gz
nextcloud-server-a32eac14774bde04d0a9a1ad516423e229f4b80c.zip
Fix issue when no apps are enabled
Properly initialize $apps array
Diffstat (limited to 'lib')
-rw-r--r--lib/private/app.php1
1 files changed, 1 insertions, 0 deletions
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();