mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
"fix for bug #1796: Various config values not stored
now only unset or empty strings are not stored, but 0 is"
This commit is contained in:
parent
f713c095b2
commit
ba5d176520
@ -149,7 +149,7 @@ class config
|
||||
{
|
||||
self::init_db();
|
||||
}
|
||||
if (empty($value))
|
||||
if (!isset($value) || $value === '')
|
||||
{
|
||||
if (isset(self::$configs[$app])) unset(self::$configs[$app][$name]);
|
||||
return self::$db->delete(config::TABLE,array('config_app'=>$app,'config_name'=>$name),__LINE__,__FILE__);
|
||||
|
Loading…
Reference in New Issue
Block a user