mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 08:38:54 +01:00
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:
parent
f5ccede031
commit
e2206c12f6
@ -85,8 +85,12 @@
|
||||
|
||||
while (list($setting,$value) = @each($newsettings))
|
||||
{
|
||||
// echo '<br>Updating: ' . $setting . '=' . $value;
|
||||
@$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'");
|
||||
/*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 . "'");
|
||||
}
|
||||
if($value)
|
||||
{
|
||||
$phpgw_setup->db->query("INSERT INTO $configtbl (config_app,config_name, config_value) VALUES ('phpgwapi','" . $phpgw_setup->db->db_addslashes($setting)
|
||||
|
Loading…
Reference in New Issue
Block a user