From 19b1fcb265712a28dc71da7ac0762642e8020127 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 1 Jul 2001 12:12:39 +0000 Subject: [PATCH] Delete the config by name prior to insertion, just in case it was listed under another appname previously --- phpgwapi/inc/class.config.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.config.inc.php b/phpgwapi/inc/class.config.inc.php index c56c0054cb..6fa77c2635 100755 --- a/phpgwapi/inc/class.config.inc.php +++ b/phpgwapi/inc/class.config.inc.php @@ -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__); }