From c5bedf89dcfc2d93dc723bd521e16510be10d414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Mon, 9 Dec 2013 10:05:41 +0100 Subject: [PATCH] update setting value if default changed --- application/core/Settings/SettingManager.php | 1 + 1 file changed, 1 insertion(+) diff --git a/application/core/Settings/SettingManager.php b/application/core/Settings/SettingManager.php index 834ec7df..0f0bc049 100644 --- a/application/core/Settings/SettingManager.php +++ b/application/core/Settings/SettingManager.php @@ -191,6 +191,7 @@ class SettingManager { @value ) ON DUPLICATE KEY UPDATE `type` = VALUES(`type`), + `value` = IF(`default` = VALUES(`default`), `value`, VALUES(`default`)), `default` = VALUES(`default`);"; $settingStatement = $mysqli->prepare($settingQuery); if ($mysqli->error) {