Skip to content

Commit

Permalink
Merge pull request #33 from merwinpoulose/string-bug-fix
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
tractorcow committed Aug 3, 2022
2 parents 143b483 + 7b50dfd commit 498db49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Extensions/OpenGraphObjectExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,11 @@ public function getOGDescription()
{
// Check MetaDescription has given content
if ($this->owner->hasField('MetaDescription')) {
$description = trim($this->owner->MetaDescription);
if (!empty($description)) {
return $description;
if($this->owner->MetaDescription != null || $this->owner->MetaDescription != ''){
$description = trim($this->owner->MetaDescription);
if (!empty($description)) {
return $description;
}
}
}

Expand Down

0 comments on commit 498db49

Please sign in to comment.