From c519447522e98e8a40dc1c1bf70cd7ef8c08505a Mon Sep 17 00:00:00 2001 From: David Baucum Date: Fri, 11 Mar 2016 15:59:11 -0500 Subject: [PATCH] Removed unnecessary check 'installed' system value' call. OC_Utils::checkServer makes an unnecessary call to $config->getSystemValue('installed', false), which replicates the call made immediately before it during the call to needUpgrade. --- lib/private/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/util.php b/lib/private/util.php index 6f53be8446..227edfcf21 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -612,7 +612,7 @@ class OC_Util { $errors = array(); $CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data'); - if (!self::needUpgrade($config) && $config->getSystemValue('installed', false)) { + if (!self::needUpgrade($config)) { // this check needs to be done every time $errors = self::checkDataDirectoryValidity($CONFIG_DATADIRECTORY); }