From: Tim Düsterhus Date: Thu, 6 Apr 2023 09:15:02 +0000 (+0200) Subject: Fix update_com.woltlab.wcf_6.0_styleVariables.php X-Git-Tag: 6.0.0_Alpha_1~289 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6759efe3c84a4853c24a852b7fa08819ce5db3e6;p=GitHub%2FWoltLab%2FWCF.git Fix update_com.woltlab.wcf_6.0_styleVariables.php --- 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) {