diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index 776440d9b3..14603f0c86 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -112,6 +112,7 @@ */ function expand_name($name,$c,$row,$c_='',$row_='',$cont='') { + $is_index_in_content = $name[0] == '@'; if (strstr($name,'$') !== False) { if (!$cont) @@ -125,7 +126,7 @@ eval('$name = "'.$name.'";'); } - if ($name[0] == '@') + if ($is_index_in_content) { $name = $this->get_array($cont,substr($name,1)); }