From 7b5c5f460c66f3b99c549f267cc1977999b0a9dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edi=20Modri=C4=87?= Date: Wed, 22 Apr 2015 14:42:39 +0200 Subject: [PATCH] Fix exception on pages where open graph tags are not configured --- MetaTag/Collector.php | 4 ++++ Resources/doc/CHANGELOG.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/MetaTag/Collector.php b/MetaTag/Collector.php index 152db1b..329770a 100644 --- a/MetaTag/Collector.php +++ b/MetaTag/Collector.php @@ -64,6 +64,10 @@ public function collect( Content $content ) $contentTypeHandlers[$contentType->identifier] ); } + else + { + $allHandlers = $allHandlers['all_content_types']; + } foreach ( $allHandlers as $handler ) { diff --git a/Resources/doc/CHANGELOG.md b/Resources/doc/CHANGELOG.md index 265d363..b55e418 100644 --- a/Resources/doc/CHANGELOG.md +++ b/Resources/doc/CHANGELOG.md @@ -1,6 +1,10 @@ Netgen Open Graph Bundle changelog ================================== +## 1.0.3 (22.04.2015) + +* Fix exception on pages where open graph tags are not configured (caused by fix in `1.0.2`) + ## 1.0.2 (22.04.2015) * Fix an edge case bug where some handler configuration could be duplicated