diff --git a/interface/lib/classes/tpl.inc.php b/interface/lib/classes/tpl.inc.php index 37814cd0c61a114ad6e4b9ccf3c91db7349608ee..efaf4c072a8ceac226b9fb5d243fdadb4fa0d9f7 100644 --- a/interface/lib/classes/tpl.inc.php +++ b/interface/lib/classes/tpl.inc.php @@ -245,7 +245,7 @@ if (!defined('vlibTemplateClassLoaded')) { } else { if (preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $k) && $v !== null) { if ($this->OPTIONS['CASELESS']) $k = strtolower($k); - if($encode == true) $value = $app->functions->htmlentities($); + if($encode == true) $v = $app->functions->htmlentities($v); $this->_vars[trim($k)] = $v; } else { return false;