From 6b0e77624f026c170196e592dfbda0ea8d3b2c24 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 9 Apr 2013 22:24:16 +0200 Subject: [PATCH] Added fix for pseudo empty variables --- wcfsetup/install/files/lib/data/style/Style.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wcfsetup/install/files/lib/data/style/Style.class.php b/wcfsetup/install/files/lib/data/style/Style.class.php index 1e251847d6..75f8c613b1 100644 --- a/wcfsetup/install/files/lib/data/style/Style.class.php +++ b/wcfsetup/install/files/lib/data/style/Style.class.php @@ -61,6 +61,11 @@ class Style extends DatabaseObject { */ public function getVariable($variableName) { if (isset($this->variables[$variableName])) { + // check if variable is empty + if ($this->variables[$variableName] == '~""') { + return ''; + } + return $this->variables[$variableName]; } -- 2.20.1