Skip to content
Snippets Groups Projects
Commit a32eac14 authored by Vincent Petry's avatar Vincent Petry
Browse files

Fix issue when no apps are enabled

Properly initialize $apps array
parent 6aa86931
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment