property attribute could be null in meta tags of course
This commit is contained in:
parent
99da1ebe41
commit
3720e37f06
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user