fixed not working storing of config for an app, which not yet has a config

This commit is contained in:
Ralf Becker 2011-10-13 06:19:14 +00:00
parent cf75387f56
commit 5cf9f585c2

View File

@ -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);