forked from extern/egroupware
Delete the config by name prior to insertion, just in case it was listed under
another appname previously
This commit is contained in:
parent
f5bbe15e1e
commit
19b1fcb265
@ -65,6 +65,7 @@
|
|||||||
{
|
{
|
||||||
$name = addslashes($name);
|
$name = addslashes($name);
|
||||||
$value = addslashes($value);
|
$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) "
|
$this->db->query("insert into phpgw_config (config_app,config_name,config_value) "
|
||||||
. "values ('" . $this->appname . "','" . $name . "','" . $value . "')",__LINE__,__FILE__);
|
. "values ('" . $this->appname . "','" . $name . "','" . $value . "')",__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user