diff --git a/src/server/cyberhex-code/system/secure_zone/php/client_settings.php b/src/server/cyberhex-code/system/secure_zone/php/client_settings.php index 59f3a91..2280e5b 100644 --- a/src/server/cyberhex-code/system/secure_zone/php/client_settings.php +++ b/src/server/cyberhex-code/system/secure_zone/php/client_settings.php @@ -38,7 +38,7 @@ function safe_settings(){ $value=htmlspecialchars($_GET["value"]); //update what should be done if a virus is found if($_GET["update"]=="setting_virus_ctrl_virus_found_action"){ - $stmt = $conn->prepare("INSERT INTO settings (value) VALUES (?) DUPLICATE KEY UPDATE value = '?' WHERE name = 'virus_ctrl:virus_found:action';"); + $stmt = $conn->prepare("INSERT INTO settings (value) VALUES (?) ON DUPLICATE KEY UPDATE value = '?' WHERE name = 'virus_ctrl:virus_found:action';"); $stmt->bind_param("ss", $value,$value); $stmt->execute(); $stmt->close();