diff options
author | David Baucum <maxolasersquad@gmail.com> | 2016-03-11 15:59:11 -0500 |
---|---|---|
committer | David Baucum <maxolasersquad@gmail.com> | 2016-03-11 15:59:11 -0500 |
commit | c519447522e98e8a40dc1c1bf70cd7ef8c08505a (patch) | |
tree | 37558aeabe910de9951399ae2eb8c31f2d91e3a0 | |
parent | 8082105a196576d2f5613ea2db150afc214a9e83 (diff) | |
download | nextcloud-server-c519447522e98e8a40dc1c1bf70cd7ef8c08505a.tar.gz nextcloud-server-c519447522e98e8a40dc1c1bf70cd7ef8c08505a.zip |
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.
-rw-r--r-- | lib/private/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 6f53be8446a..227edfcf217 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); } |