diff --git a/libs/Smarty.class.php b/libs/Smarty.class.php index c4227fd1..61fe7af0 100644 --- a/libs/Smarty.class.php +++ b/libs/Smarty.class.php @@ -798,7 +798,7 @@ class Smarty */ function register_resource($type, $functions) { - if (sizeof($functions)==4) { + if (sizeof($functions)<5) { $this->_plugins['resource'][$type] = array($functions, false);