Check if content is set, if not use empty string

This commit is contained in:
DariusIII
2019-05-31 10:41:56 +02:00
parent 4d571d3f22
commit 96fdf76f40
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -1,4 +1,5 @@
2019-05-31 DariusIII
* Chg: Check if content is set, if not use empty string
* CHg: Update config/database, AuthServiceProvider and env.example
* Chg: Update laravel/horizon to version 3.2.1
2019-05-30 DariusIII
+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->metakeywords;
$meta_description = $index->metadescription;
$meta_title = $index->title ?? '';
$meta_keywords = $index->metakeyword ?? '';
$meta_description = $index->metadescription ?? '';
}
if (empty($content)) {