Skip to content

Commit 7b5c5f4

Browse files
committed
Fix exception on pages where open graph tags are not configured
1 parent 39b6bf6 commit 7b5c5f4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

MetaTag/Collector.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ public function collect( Content $content )
6464
$contentTypeHandlers[$contentType->identifier]
6565
);
6666
}
67+
else
68+
{
69+
$allHandlers = $allHandlers['all_content_types'];
70+
}
6771

6872
foreach ( $allHandlers as $handler )
6973
{

Resources/doc/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
Netgen Open Graph Bundle changelog
22
==================================
33

4+
## 1.0.3 (22.04.2015)
5+
6+
* Fix exception on pages where open graph tags are not configured (caused by fix in `1.0.2`)
7+
48
## 1.0.2 (22.04.2015)
59

610
* Fix an edge case bug where some handler configuration could be duplicated

0 commit comments

Comments
 (0)