Use default text in place of empty string

This commit is contained in:
DariusIII
2019-05-31 10:43:20 +02:00
parent 96fdf76f40
commit 1dafa54703
+3 -3
View File
@@ -63,9 +63,9 @@ class ContentController extends BasePageController
$content = $contents->getFrontPage();
$index = $contents->getIndex();
$this->smarty->assign('front', true);
$meta_title = $index->title ?? '';
$meta_keywords = $index->metakeyword ?? '';
$meta_description = $index->metadescription ?? '';
$meta_title = $index->title ?? 'Contents page';
$meta_keywords = $index->metakeyword ?? 'contents';
$meta_description = $index->metadescription ?? 'This is the contents page.';
}
if (empty($content)) {