From bcdf8a379c563bcfb39785da1a3ce8dfb187fdce Mon Sep 17 00:00:00 2001 From: Louis Jeckel Date: Thu, 17 Sep 2020 10:37:02 +0200 Subject: [PATCH] Update HasMetaTags.php --- app/Models/HasMetaTags.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/HasMetaTags.php b/app/Models/HasMetaTags.php index a0e2331..05cecf9 100644 --- a/app/Models/HasMetaTags.php +++ b/app/Models/HasMetaTags.php @@ -19,7 +19,7 @@ trait HasMetaTags protected function getMetaTitle(): string { - return $this->title; + return $this->title ?? ''; } /** @@ -33,7 +33,7 @@ trait HasMetaTags protected function getMetaDescription(): string { - return $this->chapo; + return $this->chapo ?? ''; } protected function getMetaImage(): string -- 2.39.5