From e2206c12f6e1fa45f9ed2d998969f131f6fe2a7f Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Fri, 21 Dec 2001 22:41:44 +0000 Subject: [PATCH] Do not delete a passwd setting from the db, since we also don't put the value in the form --- setup/config.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup/config.php b/setup/config.php index 6079ee16fa..63f9aed157 100644 --- a/setup/config.php +++ b/setup/config.php @@ -85,8 +85,12 @@ while (list($setting,$value) = @each($newsettings)) { - // echo '
Updating: ' . $setting . '=' . $value; - @$phpgw_setup->db->query("DELETE FROM $configtbl WHERE config_name='" . $setting . "'"); + /*echo '
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)