]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Tweak getting bacula config boolean value
authorMarcin Haba <marcin.haba@bacula.pl>
Sat, 3 Feb 2018 19:24:14 +0000 (20:24 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 3 Feb 2018 19:26:22 +0000 (20:26 +0100)
gui/baculum/protected/API/Class/BaculaSetting.php

index 7e7179c11233156b27596673d1839077ba5132d1..ed8da9db374e29ce378dbc8df068a75742669d17 100644 (file)
@@ -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)) {