From 747cc3b57264d3e96237779fdc86b933797c97f2 Mon Sep 17 00:00:00 2001 From: Cameron Date: Thu, 26 Oct 2017 12:01:27 -0700 Subject: [PATCH] Fix for 'active' param on {CHAPTER_MENUS} --- e107_plugins/page/e_shortcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_plugins/page/e_shortcode.php b/e107_plugins/page/e_shortcode.php index d2250e27f..db1d67306 100644 --- a/e107_plugins/page/e_shortcode.php +++ b/e107_plugins/page/e_shortcode.php @@ -170,7 +170,7 @@ class page_shortcodes extends e_shortcode if(!empty($parm['template'])) { - + e107::getDebug()->log('{CHAPTER_MENUS CUSTOM TEMPLATE}'); $tpl = $parm['template']; $start .= ""; @@ -188,7 +188,7 @@ class page_shortcodes extends e_shortcode $c=1; foreach($pageArray as $row) { - $row['cmenu_tab_active'] = ($c === $active) ? true : false; + $row['cmenu_tab_active'] = ($c === (int) $active) ? true : false; if(empty($parm['template'])) {