$statement->execute(array($this->styleID));
while ($row = $statement->fetchArray()) {
$variableName = $row['variableName'];
- $this->variables[$variableName] = (isset($row['variableValue'])) ? $row['variableValue'] : $row['defaultValue'];
+ $variableValue = (isset($row['variableValue'])) ? $row['variableValue'] : $row['defaultValue'];
+ if (empty($variableValue)) {
+ $variableValue = '~""';
+ }
+
+ $this->variables[$variableName] = $variableValue;
// provide an empty value for LESS-compiler
if (empty($this->variables[$variableName])) {
$statement->execute();
$variables = array();
while ($row = $statement->fetchArray()) {
- $variables[$row['variableName']] = $row['defaultValue'];
+ $value = $row['defaultValue'];
+ if (empty($value)) {
+ $value = '~""';
+ }
+
+ $variables[$row['variableName']] = $value;
}
$this->compileStylesheet(
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfUserPanelHoverBackgroundColor', 'rgba(60, 60, 60, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('wcfMarkedBackgroundColor', 'rgba(255, 255, 200, 1)');
INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('useFluidLayout', '1');
-INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('pageLogo', '~""');
-INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('individualLess', '~""');
-INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('overrideLess', '~""');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('pageLogo', '');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('individualLess', '');
+INSERT INTO wcf1_style_variable (variableName, defaultValue) VALUES ('overrideLess', '');