1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 04:38:27 +01:00

Fix for 'active' param on {CHAPTER_MENUS}

This commit is contained in:
Cameron 2017-10-26 12:01:27 -07:00
parent 1b3168dcbc
commit 747cc3b572

View File

@ -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 .= "<!-- CHAPTER_MENUS Start Template: ". $tpl." -->";
@ -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']))
{