Skip to content

Commit

Permalink
Fix favicon finding properly
Browse files Browse the repository at this point in the history
Now falls back to website-level finding in a more sensible way
  • Loading branch information
JKingweb committed Jan 22, 2020
1 parent dd433fd commit d7fb537
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/PicoFeed/Reader/Favicon.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,17 @@ public function find($website_link, $favicon_link = '')

if ($this->content !== '') {
return $icon_link;
} elseif ($favicon_link !== '') {
return $this->find($website_link);
}
} catch (RequestException $e) {
continue;
}
}

return '';
if ($favicon_link !== '') {
return $this->find($website_link);
} else {
return '';
}
}

/**
Expand Down

0 comments on commit d7fb537

Please sign in to comment.