diff --git a/src/Content/OEmbed.php b/src/Content/OEmbed.php index 020d3b9b7..70be8fd73 100644 --- a/src/Content/OEmbed.php +++ b/src/Content/OEmbed.php @@ -100,7 +100,7 @@ class OEmbed $txt = trim($txt); - if ($txt[0] != "{") { + if (!$txt || $txt[0] != "{") { $txt = '{"type":"error"}'; } else { //save in cache $j = json_decode($txt);