- lexer/parser fix for null,true,false as array index

This commit is contained in:
Uwe.Tews
2009-11-06 17:40:20 +00:00
parent b7876e55ec
commit 6a9924162b
4 changed files with 733 additions and 727 deletions
@@ -52,7 +52,7 @@ abstract class Smarty_Internal_CompileBase
$tmp_array = array_merge($this->required_attributes, $this->optional_attributes);
foreach ($args as $key => $dummy) {
if (!in_array($key, $tmp_array) && $key !== 0) {
$this->compiler->trigger_template_error("unexspected \"" . $key . "\" attribute");
$this->compiler->trigger_template_error("unexpected \"" . $key . "\" attribute");
}
}
}