diff --git a/app/parsers/template-parser.inc.php b/app/parsers/template-parser.inc.php index 8e6f4f2b..c580f0ce 100644 --- a/app/parsers/template-parser.inc.php +++ b/app/parsers/template-parser.inc.php @@ -144,7 +144,7 @@ static function parse_foreach($data, $template) { $pages = (isset($data[$template_parts[2]]) && is_array($data[$template_parts[2]]) && !empty($data[$template_parts[2]])) ? $data[$template_parts[2]] : false; # slice down the data array if required - if(is_array($pages) && $start_limit !== false) { + if(is_array($pages) && isset($start_limit)) { $pages = array_slice($pages, $start_limit, $end_limit); }