Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
esl51 authored Aug 21, 2019
1 parent 7438ee2 commit 0bcdcec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarkupSEO.module
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ class MarkupSEO extends WireData implements Module, ConfigurableModule {
}
break;
case 'image':
if($configData['imageSmart'] && count($page->get(implode('|', $configData['imageSmart']))) > 0) {
if($configData['imageSmart'] && !empty($page->get(implode('|', $configData['imageSmart'])))) {
$imageFields = $page->get(implode('|', $configData['imageSmart']));
try {
$pageData['image'] = $page->get(implode('|', $configData['imageSmart']))->first()->httpUrl;
Expand Down

0 comments on commit 0bcdcec

Please sign in to comment.