mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
fixed not working non-static use after Jörgs commit ($app was NOT set anymore)
This commit is contained in:
parent
b53e7ccbcc
commit
e5552d1b45
@ -121,13 +121,14 @@ class config
|
||||
*/
|
||||
/* static */ function save_value($name,$value,$app=null)
|
||||
{
|
||||
if (!$app && !isset($this))
|
||||
if (!$app && (!isset($this) || !is_a($this,__CLASS__)))
|
||||
{
|
||||
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) && is_a($this,'config') && $app == $this->appname)
|
||||
if (!$app || isset($this) && is_a($this,__CLASS__) && $app == $this->appname)
|
||||
{
|
||||
$app = $this->appname;
|
||||
$this->config_data[$name] = $value;
|
||||
}
|
||||
//echo "<p>config::save_value('$name','".print_r($value,True)."','$app')</p>\n";
|
||||
|
Loading…
Reference in New Issue
Block a user