From 39a78d8496c55cd1bdb43f121a1451a4959eca71 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Sat, 3 Feb 2018 20:24:14 +0100 Subject: [PATCH] baculum: Tweak getting bacula config boolean value --- gui/baculum/protected/API/Class/BaculaSetting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) { -- 2.39.2