Skip to content

Commit

Permalink
[BUGFIX] Prevent type mismatch on return
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwemer committed Nov 26, 2024
1 parent 938c652 commit f094c39
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Classes/Domain/Service/FetchService.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public function getfetchedUrl(): string

protected function getContentFromUrl(): string
{
return GeneralUtility::getUrl($this->getUrl());
$contentFromUrl = GeneralUtility::getUrl($this->getUrl());
if ($contentFromUrl !== false) {
return $contentFromUrl;
}
return '';
}

/**
Expand Down

0 comments on commit f094c39

Please sign in to comment.