mirror of
https://github.com/Cacti/cacti.git
synced 2026-12-05 22:54:19 +09:00
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:
1 parent
a2d1f113c7
commit
d99abec814
1 file changed
+1
-1
+1
-1
@@ -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] . "')");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user