]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
property attribute could be null in meta tags of course
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 13:24:00 +0000 (14:24 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 13 Jan 2016 13:24:00 +0000 (14:24 +0100)
plugins/Oembed/lib/opengraphhelper.php

index 07b5cf5d70600f319b1871222a2f5d2904c21f77..4573f5d8abcfbc4092409d89012434c2a5563beb 100644 (file)
@@ -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;
             }