From b2b647cfb904f1bda25b676d089708fcd54aff73 Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Tue, 1 Aug 2017 18:51:44 +0200 Subject: [PATCH] baculum: Fix writing config for schedule and message names with space --- gui/baculum/protected/API/Class/BaculaSetting.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/baculum/protected/API/Class/BaculaSetting.php b/gui/baculum/protected/API/Class/BaculaSetting.php index b662f12017..0b7dbaf023 100644 --- a/gui/baculum/protected/API/Class/BaculaSetting.php +++ b/gui/baculum/protected/API/Class/BaculaSetting.php @@ -244,11 +244,11 @@ class BaculaSetting extends APIModule { } $resource[$resource_type][$directive_name][] = implode(' ', $value); } else { - $resource[$resource_type][$directive_name][] = $directive_value[$i]; + $resource[$resource_type][$directive_name][] = $this->formatDirectiveValue($directive_value[$i]); } } } else { - $resource[$resource_type][$directive_name] = $directive_value; + $resource[$resource_type][$directive_name] = $this->formatDirectiveValue($directive_value); } } @@ -266,7 +266,7 @@ class BaculaSetting extends APIModule { $resource[$resource_type][$directive_value[$i]['Type']] = implode(' = ', $value); } } else { - $resource[$resource_type][$directive_name] = $directive_value; + $resource[$resource_type][$directive_name] = $this->formatDirectiveValue($directive_value); } } -- 2.39.5