diff --git a/plugins/Oembed/lib/opengraphhelper.php b/plugins/Oembed/lib/opengraphhelper.php index 07b5cf5d70..4573f5d8ab 100644 --- a/plugins/Oembed/lib/opengraphhelper.php +++ b/plugins/Oembed/lib/opengraphhelper.php @@ -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" continue; }