setting manager always sets default value on init

This commit is contained in:
Steffen Schröder 2013-11-10 22:31:46 +01:00
parent 6df3200255
commit 0ad335081f

View File

@ -187,7 +187,8 @@ class SettingManager {
@value := ?, @value := ?,
@value @value
) ON DUPLICATE KEY UPDATE ) ON DUPLICATE KEY UPDATE
`index` = LAST_INSERT_ID(`index`);"; `type` = VALUE(`type`),
`default` = VALUE(`default`);";
$settingStatement = $mysqli->prepare($settingQuery); $settingStatement = $mysqli->prepare($settingQuery);
if ($mysqli->error) { if ($mysqli->error) {
trigger_error($mysqli->error); trigger_error($mysqli->error);