Add some checks
This commit is contained in:
parent
d020b9f2d9
commit
078c13da2b
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user