1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-10 08:34:09 +02:00

Tweak of last commit

This commit is contained in:
Cameron
2013-11-21 19:41:29 -08:00
parent 37e1b95f75
commit fdfb8ba1f3
2 changed files with 3 additions and 3 deletions

View File

@@ -161,7 +161,7 @@ class page_sitelink // include plugin-folder in the name.
'link_parent' => $row['page_chapter'],
'link_open' => '',
'link_class' => intval($row['page_class']),
'link_active' => ($options['cpage'] && $row['page_id'] == $options['cpage'])
'link_active' => (isset($options['cpage']) && $row['page_id'] == $options['cpage'])
);
}
@@ -211,7 +211,7 @@ class page_sitelink // include plugin-folder in the name.
'link_open' => '',
'link_class' => 0,
'link_sub' => (!vartrue($options['book']) && !vartrue($options['auto'])) ? varset($sublinks[$row['chapter_id']]) : '', //XXX always test with docs template in bootstrap before changing.
'link_active' => $row['chapter_parent'] == 0 ? $options['cbook'] && $options['cbook'] == $row['chapter_id'] : $options['cchapter'] && $options['cchapter'] == $row['chapter_id'],
'link_active' => $row['chapter_parent'] == 0 ? isset($options['cbook']) && $options['cbook'] == $row['chapter_id'] : isset($options['cchapter']) && $options['cchapter'] == $row['chapter_id'],
);
}