Skip to content

Commit 002bdce

Browse files
committed
bugfix
1 parent 2b298e3 commit 002bdce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Providers/Html.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ public function getLicense()
188188
*/
189189
public function getLinkedData()
190190
{
191+
$data = [];
192+
191193
if (!($html = $this->request->getHtmlContent())) {
192-
return false;
194+
return $data;
193195
}
194196

195-
$data = [];
196-
197197
foreach ($html->getElementsByTagName('script') as $script) {
198198
if ($script->hasAttribute('type') && strtolower($script->getAttribute('type')) === 'application/ld+json') {
199199
$value = trim($script->nodeValue);

0 commit comments

Comments
 (0)