bugfix setting manager
This commit is contained in:
parent
9f2a34507e
commit
9715edfa88
@ -186,7 +186,8 @@ class SettingManager {
|
|||||||
?, ?, ?,
|
?, ?, ?,
|
||||||
@value := ?,
|
@value := ?,
|
||||||
@value
|
@value
|
||||||
);";
|
) ON DUPLICATE KEY UPDATE
|
||||||
|
`index` = LAST_INSERT_ID(`index`);";
|
||||||
$settingStatement = $mysqli->prepare($settingQuery);
|
$settingStatement = $mysqli->prepare($settingQuery);
|
||||||
if ($mysqli->error) {
|
if ($mysqli->error) {
|
||||||
trigger_error($mysqli->error);
|
trigger_error($mysqli->error);
|
||||||
@ -196,6 +197,7 @@ class SettingManager {
|
|||||||
$settingStatement->execute();
|
$settingStatement->execute();
|
||||||
if ($settingStatement->error) {
|
if ($settingStatement->error) {
|
||||||
trigger_error($settingStatement->error);
|
trigger_error($settingStatement->error);
|
||||||
|
$settingStatement->close();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$settingStatement->close();
|
$settingStatement->close();
|
||||||
|
Loading…
Reference in New Issue
Block a user