From c8615c194c72c9f535cf4bdc90141fcd6c4fb765 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 16 Jun 2010 11:04:49 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20not=20working=20non-static=20use=20afte?= =?UTF-8?q?r=20J=C3=B6rgs=20commit=20($app=20was=20NOT=20set=20anymore)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- phpgwapi/inc/class.config.inc.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.config.inc.php b/phpgwapi/inc/class.config.inc.php index 1e4c59f114..8aef674be5 100755 --- a/phpgwapi/inc/class.config.inc.php +++ b/phpgwapi/inc/class.config.inc.php @@ -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 "

config::save_value('$name','".print_r($value,True)."','$app')

\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 "

config::save_value('$name','".print_r($value,True)."','$app')

\n";