From: Marcin Haba Date: Sat, 3 Feb 2018 19:24:14 +0000 (+0100) Subject: baculum: Tweak getting bacula config boolean value X-Git-Tag: Release-9.0.7~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=39a78d8496c55cd1bdb43f121a1451a4959eca71;p=bacula%2Fbacula baculum: Tweak getting bacula config boolean value --- diff --git a/gui/baculum/protected/API/Class/BaculaSetting.php b/gui/baculum/protected/API/Class/BaculaSetting.php index 7e7179c112..ed8da9db37 100644 --- a/gui/baculum/protected/API/Class/BaculaSetting.php +++ b/gui/baculum/protected/API/Class/BaculaSetting.php @@ -390,7 +390,7 @@ class BaculaSetting extends APIModule { private function formatDirectiveValue($value) { $directive_value = null; if (is_bool($value)) { - $directive_value = ($value === true) ? 'yes' : 'no'; + $directive_value = Params::getBoolValue($value); } elseif (is_int($value)) { $directive_value = $value; } elseif (is_string($value)) {