diff --git a/phpgwapi/inc/class.preferences.inc.php b/phpgwapi/inc/class.preferences.inc.php index 4171a66d1f..7af68ee280 100644 --- a/phpgwapi/inc/class.preferences.inc.php +++ b/phpgwapi/inc/class.preferences.inc.php @@ -395,11 +395,13 @@ } else { - if ($var && @isset($this->$set_from[$app_name][$var]) && $this->$set_from[$app_name][$var] !== '') + $arr = $this->$set_from; + if($var && @isset($arr[$app_name][$var]) && $arr[$app_name][$var] !== '') { $this->data[$app_name][$var] = $this->$set_from[$app_name][$var]; break; } + unset($arr); } } reset ($this->data);