Merge pull request #5555 from JakubOnderka/patch-76

fix: [CLI] Die if setting name is not correct
pull/5559/head
Andras Iklody 2020-01-27 12:35:34 +01:00 committed by GitHub
commit cc9c0ee207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -280,6 +280,7 @@ class AdminShell extends AppShell
$setting = $this->Server->getSettingData($setting_name);
if (empty($setting)) {
echo 'Invalid setting "' . $setting_name . '". Please make sure that the setting that you are attempting to change exists and if a module parameter, the modules are running.' . PHP_EOL;
exit(1);
}
$result = $this->Server->serverSettingsEditValue($cli_user, $setting, $value);
if ($result === true) {