From 219c1db81ef390ae90fd819e2a8469cd591a94eb Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 5 Apr 2004 00:00:40 +0000 Subject: [PATCH] $col in name for $c == 0 triggered a use as index in content --- etemplate/inc/class.boetemplate.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)); }