mirror of
https://github.com/smarty-php/smarty.git
synced 2026-05-03 19:30:49 +02:00
- lexer/parser fix for null,true,false as array index
This commit is contained in:
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user