1
0
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:
Cameron 2021-11-24 14:38:39 -08:00
parent bb4792bff3
commit 68c3b0649c

View File

@ -26,6 +26,7 @@ $insert = (vartrue($parm['book'])) ? "AND chapter_parent = ".intval($parm['book'
//TODO Limits and cache etc. //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); $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)) if(!empty($data))
{ {
@ -51,6 +52,7 @@ elseif(ADMIN)
$body = "<div class='alert alert-danger'>No Chapters available</div>"; $body = "<div class='alert alert-danger'>No Chapters available</div>";
} }
$caption = $tp->parseTemplate($template['listChapters']['caption'], true, $sc); $caption = $tp->parseTemplate($template['listChapters']['caption'], true, $sc);
$ns->tablerender($caption, $body, 'chapter-menu'); $ns->tablerender($caption, $body, 'chapter-menu');