bugfix setting manager

This commit is contained in:
Steffen Schröder 2013-11-10 21:58:06 +01:00
parent 9f2a34507e
commit 9715edfa88

View File

@ -186,7 +186,8 @@ class SettingManager {
?, ?, ?,
@value := ?,
@value
);";
) ON DUPLICATE KEY UPDATE
`index` = LAST_INSERT_ID(`index`);";
$settingStatement = $mysqli->prepare($settingQuery);
if ($mysqli->error) {
trigger_error($mysqli->error);
@ -196,6 +197,7 @@ class SettingManager {
$settingStatement->execute();
if ($settingStatement->error) {
trigger_error($settingStatement->error);
$settingStatement->close();
return false;
}
$settingStatement->close();