Do not delete a passwd setting from the db, since we also don't put the value

in the form
This commit is contained in:
Miles Lott 2001-12-21 22:41:44 +00:00
parent f5ccede031
commit e2206c12f6

View File

@ -85,8 +85,12 @@
while (list($setting,$value) = @each($newsettings)) while (list($setting,$value) = @each($newsettings))
{ {
// echo '<br>Updating: ' . $setting . '=' . $value; /*echo '<br>Updating: ' . $setting . '=' . $value; */
/* Don't erase passwords, since we also do not print them below */
if(!ereg('passwd',$value) && !ereg('password',$value) && !ereg('root_pw',$value))
{
@$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'"); @$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'");
}
if($value) if($value)
{ {
$phpgw_setup->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) VALUES ('phpgwapi','" . $phpgw_setup->db->db_addslashes($setting) $phpgw_setup->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) VALUES ('phpgwapi','" . $phpgw_setup->db->db_addslashes($setting)