We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3720e37f authored by mattl's avatar mattl

property attribute could be null in meta tags of course

parent 99da1ebe
......@@ -34,7 +34,7 @@ class OpenGraphHelper
$property = $node->attributes->getNamedItem('property');
$matches = array();
if (!preg_match(self::KEY_REGEX, $property->value, $matches)) {
if ($property === null || !preg_match(self::KEY_REGEX, $property->value, $matches)) {
// not property="og:something"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment