Fix residue from change to use start/commitTransaction()

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-27 11:55:24 +01:00
parent 659b1ca383
commit d9d4e3680f

View file

@ -954,17 +954,17 @@ class ConfigurationManager
error_log("Invalid input: '$variable' is not a string or does not contain an equal sign ('=')"); error_log("Invalid input: '$variable' is not a string or does not contain an equal sign ('=')");
continue; continue;
} }
$keyWithValue = $confManager->replaceEnvPlaceholders($variable); $keyWithValue = $this->replaceEnvPlaceholders($variable);
// Pad the result with nulls so psalm is happy (and we don't risk to run into warnings in case // Pad the result with nulls so psalm is happy (and we don't risk to run into warnings in case
// the check for an equal sign from above gets changed). // the check for an equal sign from above gets changed).
[$key, $value] = explode('=', $keyWithValue, 2) + [null, null]; [$key, $value] = explode('=', $keyWithValue, 2) + [null, null];
$key = $this->camelize($key); $key = $this->camelize($key);
if ($value === null) { if ($value === null) {
error_log("Invalid input: '$keyWithValue' has no value after the equal sign"); error_log("Invalid input: '$keyWithValue' has no value after the equal sign");
} else if (!property_exists($confManager, $key)) { } else if (!property_exists($this, $key)) {
error_log("Error: '$key' is not a valid configuration key (in '$keyWithValue')"); error_log("Error: '$key' is not a valid configuration key (in '$keyWithValue')");
} else { } else {
$confManager->$key = $value; $this->$key = $value;
} }
} }
$this->commitTransaction(); $this->commitTransaction();