mirror of
https://github.com/smarty-php/smarty.git
synced 2025-11-02 05:11:36 +01:00
- check if mb string functions available otherwise fallback to normal string functions
This commit is contained in:
@@ -55,8 +55,8 @@ abstract class Smarty_Internal_CompileBase
|
||||
if ($this->optional_attributes != array('_any')) {
|
||||
$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");
|
||||
if (!in_array($key, $tmp_array) && $key !== 0) {
|
||||
$this->compiler->trigger_template_error("unexspected \"" . $key . "\" attribute");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user