diff --git a/etemplate/inc/class.boetemplate.inc.php b/etemplate/inc/class.boetemplate.inc.php index 1bcfa9e9b6..0c93b6f516 100644 --- a/etemplate/inc/class.boetemplate.inc.php +++ b/etemplate/inc/class.boetemplate.inc.php @@ -702,7 +702,7 @@ class boetemplate extends soetemplate { if (strpos($str,$enclosure) === false) { - return explode($delimiter,$str,$num); // no need to run this more expensive code + return is_null($num) ? explode($delimiter,$str) : explode($delimiter,$str,$num); // no need to run this more expensive code } $parts = explode($delimiter,$str); for($n = 0; isset($parts[$n]); ++$n)