diff --git a/Smarty.class.php b/Smarty.class.php index 43aed232..ec292342 100644 --- a/Smarty.class.php +++ b/Smarty.class.php @@ -120,7 +120,8 @@ class Smarty 'PHP_HANDLING' => false, 'IF_FUNCS' => array('array', 'list', 'isset', 'empty', - 'count', 'in_array'), + 'count', 'sizeof', + 'in_array'), 'INCLUDE_ANY' => false, 'PHP_TAGS' => false, 'MODIFIER_FUNCS' => array('count') diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index 43aed232..ec292342 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -120,7 +120,8 @@ class Smarty 'PHP_HANDLING' => false, 'IF_FUNCS' => array('array', 'list', 'isset', 'empty', - 'count', 'in_array'), + 'count', 'sizeof', + 'in_array'), 'INCLUDE_ANY' => false, 'PHP_TAGS' => false, 'MODIFIER_FUNCS' => array('count')