mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
fixed not working storing of config for an app, which not yet has a config
This commit is contained in:
parent
cf75387f56
commit
5cf9f585c2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user