From d99abec814d3c437bfa0d6cc5f2c4660449ae2ab Mon Sep 17 00:00:00 2001 From: Ian Berry Date: Sat, 18 Dec 2004 00:00:49 +0000 Subject: [PATCH] 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 --- install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install/index.php b/install/index.php index e7823fd8d6..91dbe50893 100644 --- a/install/index.php +++ b/install/index.php @@ -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] . "')"); } }