mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Remove PHP warning.
This commit is contained in:
parent
bb4792bff3
commit
68c3b0649c
@ -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 = "<div class='alert alert-danger'>No Chapters available</div>";
|
||||
}
|
||||
|
||||
|
||||
$caption = $tp->parseTemplate($template['listChapters']['caption'], true, $sc);
|
||||
|
||||
$ns->tablerender($caption, $body, 'chapter-menu');
|
||||
|
Loading…
x
Reference in New Issue
Block a user