From 3720e37f06654e942179a31b6e65ed2a5d0fe2a1 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 13 Jan 2016 14:24:00 +0100 Subject: [PATCH] property attribute could be null in meta tags of course --- plugins/Oembed/lib/opengraphhelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5