Skip to content

Commit

Permalink
fix SEO admin error when no social image set
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mc Cormack committed Apr 25, 2019
1 parent 015a4ea commit c4b9c69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/Extension/SeoPageExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,8 @@ public function getSummaryFields()
*/
public function getGridFieldImage()
{
return $this->getPageSocialImage()->Fill(20,20);
$image = $this->getPageSocialImage();
return $image ? $image->Fill(20,20) : null;
}

/**
Expand Down

0 comments on commit c4b9c69

Please sign in to comment.