Fix config::save_value static call issue

This commit is contained in:
Jörg Lehrke 2010-06-16 08:36:49 +00:00
parent 48c6e5416a
commit 1f536bfb5e

View File

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