Fix bug: Atom feed without link tag

This commit is contained in:
Frédéric Guillot 2013-11-11 21:04:42 -05:00
parent 7251ce88c9
commit 06c0e63d9e

View File

@ -217,6 +217,10 @@ function import_feed($url, $grabber = false)
$parser->grabber = $grabber; $parser->grabber = $grabber;
$feed = $parser->execute(); $feed = $parser->execute();
if (! $feed->url) {
$feed->url = $reader->getUrl();
}
if ($feed === false || ! $feed->title || ! $feed->url) { if ($feed === false || ! $feed->title || ! $feed->url) {
write_debug(); write_debug();
return false; return false;