1
0

Fix: Site title when bundle has no section

This commit is contained in:
Richard Dern 2024-04-22 21:46:05 +02:00
parent 824f4335fb
commit b3fc3d1890

View File

@ -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()