Add some checks

This commit is contained in:
Frederic Guillot 2013-04-03 21:19:02 -04:00
parent d020b9f2d9
commit 078c13da2b
1 changed files with 5 additions and 0 deletions

View File

@ -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()) {