Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
merwinpoulose committed Aug 3, 2022
1 parent 143b483 commit 7b50dfd
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 7b50dfd

Please sign in to comment.