mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Check if content is set, if not use empty string
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user