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.
This commit is contained in:
David Baucum 2016-03-11 15:59:11 -05:00
parent 8082105a19
commit c519447522
1 changed files with 1 additions and 1 deletions

View File

@ -612,7 +612,7 @@ class OC_Util {
$errors = array(); $errors = array();
$CONFIG_DATADIRECTORY = $config->getSystemValue('datadirectory', OC::$SERVERROOT . '/data'); $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 // this check needs to be done every time
$errors = self::checkDataDirectoryValidity($CONFIG_DATADIRECTORY); $errors = self::checkDataDirectoryValidity($CONFIG_DATADIRECTORY);
} }