Fix issue when no apps are enabled

Properly initialize $apps array
This commit is contained in:
Vincent Petry 2014-08-11 15:32:56 +02:00
parent 6aa8693198
commit a32eac1477

View file

@ -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();