From 0ad335081f8a9f0b6abf6da674ce254d4e40e0e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steffen=20Schro=CC=88der?= Date: Sun, 10 Nov 2013 22:31:46 +0100 Subject: [PATCH] setting manager always sets default value on init --- application/core/settingManager.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/core/settingManager.php b/application/core/settingManager.php index dc53c6f2..f6883052 100644 --- a/application/core/settingManager.php +++ b/application/core/settingManager.php @@ -187,7 +187,8 @@ class SettingManager { @value := ?, @value ) ON DUPLICATE KEY UPDATE - `index` = LAST_INSERT_ID(`index`);"; + `type` = VALUE(`type`), + `default` = VALUE(`default`);"; $settingStatement = $mysqli->prepare($settingQuery); if ($mysqli->error) { trigger_error($mysqli->error);