From 6759efe3c84a4853c24a852b7fa08819ce5db3e6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 6 Apr 2023 11:15:02 +0200 Subject: [PATCH] Fix update_com.woltlab.wcf_6.0_styleVariables.php --- .../files/acp/update_com.woltlab.wcf_6.0_styleVariables.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_styleVariables.php b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_styleVariables.php index c894dda114..b5f9bedab3 100644 --- a/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_styleVariables.php +++ b/wcfsetup/install/files/acp/update_com.woltlab.wcf_6.0_styleVariables.php @@ -159,8 +159,8 @@ $styleVariables = [ $sql = "INSERT INTO wcf1_style_variable (variableName, defaultValue, defaultValueDarkMode) VALUES (?, ?, ?) - ON DUPLICATE KEY UPDATE defaultValue = ?, - defaultValueDarkMode = ?"; + ON DUPLICATE KEY UPDATE defaultValue = VALUES(defaultValue), + defaultValueDarkMode = VALUES(defaultValueDarkMode)"; $statement = WCF::getDB()->prepare($sql); foreach ($styleVariables as $data) { -- 2.20.1