From 078c13da2b1a9dde1a308c472e895acb882767fc Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Wed, 3 Apr 2013 21:19:02 -0400 Subject: [PATCH] Add some checks --- miniflux/model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miniflux/model.php b/miniflux/model.php index 1c70e7e..dc80c85 100644 --- a/miniflux/model.php +++ b/miniflux/model.php @@ -72,6 +72,11 @@ function import_feed($url) $feed = $parser->execute(); + if (! $feed->title || ! $feed->url) { + + return false; + } + $db = \PicoTools\singleton('db'); if (! $db->table('feeds')->eq('feed_url', $reader->getUrl())->count()) {