1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-30 19:30:25 +02:00

Remove PHP Warnings. Next/Prev test added.

This commit is contained in:
Cameron
2021-11-24 13:08:04 -08:00
parent f2e5a033b8
commit 81cbe51228
4 changed files with 67 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class cpage_shortcodes extends e_shortcode
function getChapter()
{
$id = $this->var['page_chapter'];
$id = varset($this->var['page_chapter']);
if(!empty($this->chapterData[$id]['chapter_id']) && $this->chapterData[$id]['chapter_parent'] > 0)
{
@@ -663,7 +663,8 @@ class cpage_shortcodes extends e_shortcode
$action = varset($request['action']);
$row = $this->getChapter();
$brow = $this->getBook($row['chapter_parent']);
$parent = isset($row['chapter_parent']) ? (int) $row['chapter_parent'] : 0;
$brow = $this->getBook($parent);
if(empty($brow['chapter_sef']) || $this->breadcrumbComplete === true || ($action === 'listBooks'))
{