]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/baculum/protected/Common/Class/Params.php
baculum: Fix saving boolean values in schedule Run directive
[bacula/bacula] / gui / baculum / protected / Common / Class / Params.php
index 02ad37d1ba2a3614a303a0240ae768f933e4fd39..67bf60c02a79492b4a5cc27612fea7ce95101a10 100644 (file)
@@ -105,4 +105,14 @@ class Params extends CommonModule {
                return $wday;
        }
 
+       /**
+        * Get Bacula config boolean value.
+        *
+        * @param boolean $value value
+        * @return string bacula config boolean value
+        */
+       public static function getBoolValue($value) {
+               return ($value ? 'yes' : 'no');
+       }
 }
+?>