1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-13 18:14:26 +02:00

Fixes #3894 - Chapter breadcrumb displaying when no chapter in use.

This commit is contained in:
Cameron
2019-07-23 17:45:23 -07:00
parent f4a47d44e9
commit c98845b48a

View File

@@ -602,6 +602,7 @@ class cpage_shortcodes extends e_shortcode
if(empty($brow['chapter_sef'])) if(empty($brow['chapter_sef']))
{ {
//e107::getDebug()->log($this);
return null; return null;
} }
@@ -619,7 +620,13 @@ class cpage_shortcodes extends e_shortcode
function sc_chapter_breadcrumb() function sc_chapter_breadcrumb()
{ {
// $this->breadcrumb(); $row = $this->getChapter();
$brow = $this->getBook($row['chapter_parent']);
if(empty($brow['chapter_sef']))
{
return null;
}
$breadcrumb = e107::breadcrumb(); $breadcrumb = e107::breadcrumb();