but do check the right value...

This commit is contained in:
Miles Lott 2001-12-21 22:44:09 +00:00
parent e2206c12f6
commit 566aee1cb2

View File

@ -85,9 +85,9 @@
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))
if(!ereg('passwd',$setting) && !ereg('password',$setting) && !ereg('root_pw',$setting))
{
@$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'");
}