From 0a3caf2b4c3052bdaa44b84bb996e6f5021d428e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 31 Oct 2012 11:35:53 +0100 Subject: [PATCH] Fixed style editing Fixes #5 --- files/lib/acp/form/StyleEditForm.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/files/lib/acp/form/StyleEditForm.class.php b/files/lib/acp/form/StyleEditForm.class.php index 35d0bdabd4..6eac33af3f 100644 --- a/files/lib/acp/form/StyleEditForm.class.php +++ b/files/lib/acp/form/StyleEditForm.class.php @@ -57,6 +57,14 @@ class StyleEditForm extends StyleAddForm { */ protected function readStyleVariables() { $this->variables = $this->style->getVariables(); + + // fix empty values ~"" + foreach ($this->variables as &$variableValue) { + if ($variableValue == '~""') { + $variableValue = ''; + } + } + unset($variableValue); } /** -- 2.20.1