diff options
-rw-r--r-- | src/HTMLParser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/HTMLParser.php b/src/HTMLParser.php index 288d8a8..51b7afb 100644 --- a/src/HTMLParser.php +++ b/src/HTMLParser.php @@ -451,7 +451,7 @@ class HTMLParser } if (array_key_exists('og:image', $values) || array_key_exists('twitter:image', $values)) { - $metadata['image'] = ($values['og:image']) ? $values['og:image'] : $values['twitter:image']; + $metadata['image'] = array_key_exists('og:image', $values) ? $values['og:image'] : $values['twitter:image']; } else { $metadata['image'] = null; } |