[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/inc class.config.inc.php,1.7.2.1.2.4
From: |
ceb |
Subject: |
[Phpgroupware-cvs] phpgwapi/inc class.config.inc.php,1.7.2.1.2.4 |
Date: |
Thu, 24 Feb 2005 15:58:39 -0000 |
Update of phpgwapi/inc
Modified Files:
Branch: Version-0_9_16-branch
class.config.inc.php lines: +4 -5
Log Message:
bugfix for looding config values
====================================================
Index: phpgwapi/inc/class.config.inc.php
diff -u phpgwapi/inc/class.config.inc.php:1.7.2.1.2.3
phpgwapi/inc/class.config.inc.php:1.7.2.1.2.4
--- phpgwapi/inc/class.config.inc.php:1.7.2.1.2.3 Tue Feb 10 13:51:17 2004
+++ phpgwapi/inc/class.config.inc.php Thu Jan 6 01:01:57 2005
@@ -56,7 +56,7 @@
if ($config_data)
{
$this->db->lock(array('phpgw_config','phpgw_app_sessions'));
- $this->db->query("delete from phpgw_config
where config_app='" . $this->appname . "'",__LINE__,__FILE__);
+ //$this->db->query("delete from phpgw_config
where config_app='" . $this->appname . "'",__LINE__,__FILE__); this is
dangerous!
if($this->appname == 'phpgwapi')
{
$this->db->query("delete from
phpgw_app_sessions where sessionid = '0' and loginid = '0' and app =
'".$this->appname."' and location = 'config'",__LINE__,__FILE__);
@@ -69,9 +69,8 @@
}
$name = addslashes($name);
$value = addslashes($value);
- $this->db->query("delete from
phpgw_config where config_name='" . $name . "'",__LINE__,__FILE__);
- $query = "insert into phpgw_config
(config_app,config_name,config_value) "
- . "values ('" . $this->appname
. "','" . $name . "','" . $value . "')";
+ $this->db->query("DELETE from
phpgw_config WHERE config_app='" . $this->appname . "' AND config_name='" .
$name . "'",__LINE__,__FILE__);
+ $query = "insert into phpgw_config
(config_app,config_name,config_value) " . "values ('" . $this->appname . "','"
. $name . "','" . $value . "')";
$this->db->query($query,__LINE__,__FILE__);
}
$this->db->unlock();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/inc class.config.inc.php,1.7.2.1.2.4,
ceb <=