]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix default value for updatedirectory setting 34306/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 28 Sep 2022 12:39:12 +0000 (14:39 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 28 Sep 2022 12:39:12 +0000 (14:39 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/Repair/MoveUpdaterStepFile.php

index 020510804d74a93eaf97e3200d96f293b25d7230..9731babe4cecb621428042e039fd7b59ccbca42d 100644 (file)
@@ -43,7 +43,7 @@ class MoveUpdaterStepFile implements IRepairStep {
        }
 
        public function run(IOutput $output) {
-               $updateDir = $this->config->getSystemValue('updatedirectory') ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
+               $updateDir = $this->config->getSystemValue('updatedirectory', null) ?? $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data');
                $instanceId = $this->config->getSystemValue('instanceid', null);
 
                if (!is_string($instanceId) || empty($instanceId)) {