Added fix for pseudo empty variables
authorAlexander Ebert <ebert@woltlab.com>
Tue, 9 Apr 2013 20:24:16 +0000 (22:24 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Tue, 9 Apr 2013 20:24:16 +0000 (22:24 +0200)
wcfsetup/install/files/lib/data/style/Style.class.php

index 1e251847d63c756b4c4a5e6bc25b84a8fc3b258f..75f8c613b15bf2d54ffabf4cae160d33b8d9f212 100644 (file)
@@ -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];
                }