diff --git a/e107_plugins/page/chapter_menu.php b/e107_plugins/page/chapter_menu.php index e515d1976..68258eb51 100644 --- a/e107_plugins/page/chapter_menu.php +++ b/e107_plugins/page/chapter_menu.php @@ -26,6 +26,7 @@ $insert = (vartrue($parm['book'])) ? "AND chapter_parent = ".intval($parm['book' //TODO Limits and cache etc. $data = $sql->retrieve("SELECT * FROM #page_chapters WHERE chapter_visibility IN (".USERCLASS_LIST.") AND chapter_template = 'panel' ".$insert. " LIMIT 24", true); +$sc = null; if(!empty($data)) { @@ -51,6 +52,7 @@ elseif(ADMIN) $body = "
No Chapters available
"; } + $caption = $tp->parseTemplate($template['listChapters']['caption'], true, $sc); $ns->tablerender($caption, $body, 'chapter-menu');