update->replace into new settings

git-svn-id: svn+ssh://repo.cacti.net/var/data/svnroot/cacti/branches/BRANCH_0_8_6/cacti@2502 860744bd-22fc-0310-8c96-e9fe5004b5ca
This commit is contained in:
Ian Berry committed 2004-12-18 00:00:49 +00:00
1 parent a2d1f113c7
commit d99abec814
1 file changed
+1 -1
+1 -1
View File
@@ -211,7 +211,7 @@ if ($_REQUEST["step"] == "4") {
/* get all items on the form and write values for them */
while (list($name, $array) = each($input)) {
if (isset($_POST[$name])) {
db_execute("update settings set value='" . $_POST[$name] . "' where name='$name'");
db_execute("replace into settings (name,value) values ('$name','" . $_POST[$name] . "')");
}
}