We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0ea95c commit 93dfecbCopy full SHA for 93dfecb
src/OEmbed.php
@@ -165,7 +165,7 @@ private function extractJSON(string $json): array
165
try {
166
$data = json_decode($json, true);
167
168
- return $data ? ($data + $this->defaults) : [];
+ return is_array($data) ? ($data + $this->defaults) : [];
169
} catch (Exception $exception) {
170
return [];
171
}
0 commit comments