From 06c0e63d9e1ac61fcfb024ef74d7e6d8ce2a0c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Mon, 11 Nov 2013 21:04:42 -0500 Subject: [PATCH] Fix bug: Atom feed without link tag --- model.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model.php b/model.php index 562f61d..e7aaeeb 100644 --- a/model.php +++ b/model.php @@ -217,6 +217,10 @@ function import_feed($url, $grabber = false) $parser->grabber = $grabber; $feed = $parser->execute(); + if (! $feed->url) { + $feed->url = $reader->getUrl(); + } + if ($feed === false || ! $feed->title || ! $feed->url) { write_debug(); return false;