From 5cf9f585c222e9f3a1d8a1c3abd023f2a52735e8 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 13 Oct 2011 06:19:14 +0000 Subject: [PATCH] fixed not working storing of config for an app, which not yet has a config --- phpgwapi/inc/class.config.inc.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/phpgwapi/inc/class.config.inc.php b/phpgwapi/inc/class.config.inc.php index 5dafda44a9..bcf8021caa 100755 --- a/phpgwapi/inc/class.config.inc.php +++ b/phpgwapi/inc/class.config.inc.php @@ -140,10 +140,6 @@ class config return True; // no change ==> exit } - if (isset(self::$configs[$app])) - { - self::$configs[$app][$name] = $value; - } if(is_array($value)) { $value = serialize($value); @@ -155,6 +151,7 @@ class config } else { + self::$configs[$app][$name] = $value; $ok = self::$db->insert(config::TABLE,array('config_value'=>$value),array('config_app'=>$app,'config_name'=>$name),__LINE__,__FILE__); } if ($update_cache) egw_cache::setInstance(__CLASS__, 'configs', self::$configs);