Delete the config by name prior to insertion, just in case it was listed under

another appname previously
This commit is contained in:
Miles Lott 2001-07-01 12:12:39 +00:00
parent f5bbe15e1e
commit 19b1fcb265

View File

@ -65,6 +65,7 @@
{
$name = addslashes($name);
$value = addslashes($value);
$this->db->query("delete from phpgw_config where config_name='" . $name . "'",__LINE__,__FILE__);
$this->db->query("insert into phpgw_config (config_app,config_name,config_value) "
. "values ('" . $this->appname . "','" . $name . "','" . $value . "')",__LINE__,__FILE__);
}