mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-03-15 07:58:23 +01:00
Fix config::save_value static call issue
This commit is contained in:
parent
8cd67e0af7
commit
230d666597
@ -126,9 +126,8 @@ class config
|
||||
throw new egw_exception_assertion_failed('$app parameter required for static call of config::save_value($name,$value,$app)!');
|
||||
}
|
||||
//echo "<p>config::save_value('$name','".print_r($value,True)."','$app')</p>\n";
|
||||
if (!$app || isset($this) && $app == $this->appname)
|
||||
if (!$app || isset($this) && is_a($this,'config') && $app == $this->appname)
|
||||
{
|
||||
$app = $this->appname;
|
||||
$this->config_data[$name] = $value;
|
||||
}
|
||||
//echo "<p>config::save_value('$name','".print_r($value,True)."','$app')</p>\n";
|
||||
@ -223,7 +222,7 @@ class config
|
||||
// manually retrieve the string lengths of the serialized array if unserialize failed
|
||||
$test = @unserialize(preg_replace('!s:(\d+):"(.*?)";!se', "'s:'.mb_strlen('$2','8bit').':\"$2\";'", $value));
|
||||
}
|
||||
|
||||
|
||||
$config[$name] = is_array($test) ? $test : $value;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user