mirror of
https://github.com/e107inc/e107.git
synced 2025-07-26 09:20:28 +02:00
Remove PHP warning.
This commit is contained in:
@@ -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');
|
||||||
|
Reference in New Issue
Block a user