diff --git a/app/Classes/Bundle.php b/app/Classes/Bundle.php index f649c82..73373a2 100644 --- a/app/Classes/Bundle.php +++ b/app/Classes/Bundle.php @@ -123,7 +123,14 @@ public function getArticleTitle(): string public function getSiteTitle(): string { - return $this->getArticleTitle() . ' - ' . $this->getSection()->getArticleTitle(); + $title = $this->getArticleTitle(); + $section = $this->getSection(); + + if (!empty($section)) { + $title .= ' - ' . $section->getArticleTitle(); + } + + return $title; } public function render()