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'])) {