From 0bcdcec5549fddaa5f1685cc3a97afcaa5ef1c0e Mon Sep 17 00:00:00 2001 From: esl51 Date: Wed, 21 Aug 2019 13:13:25 +0300 Subject: [PATCH] fix #38 --- MarkupSEO.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MarkupSEO.module b/MarkupSEO.module index 8b19dab..7a1bda2 100644 --- a/MarkupSEO.module +++ b/MarkupSEO.module @@ -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;