]> _ Git - psq.git/commitdiff
Update HasMetaTags.php
authorLouis Jeckel <louis.jeckel@outlook.cm>
Thu, 17 Sep 2020 08:37:02 +0000 (10:37 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Thu, 17 Sep 2020 08:37:02 +0000 (10:37 +0200)
app/Models/HasMetaTags.php

index a0e23319b204eadce631574a2d407b38a4d06b08..05cecf96cbb7b9eb8b65bbb76e9b8109abc6a7ad 100644 (file)
@@ -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