Fix PHP error
This commit is contained in:
parent
06c0e63d9e
commit
4fdd2913ae
@ -217,11 +217,14 @@ function import_feed($url, $grabber = false)
|
|||||||
$parser->grabber = $grabber;
|
$parser->grabber = $grabber;
|
||||||
$feed = $parser->execute();
|
$feed = $parser->execute();
|
||||||
|
|
||||||
if (! $feed->url) {
|
if ($feed === false) {
|
||||||
$feed->url = $reader->getUrl();
|
write_debug();
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($feed === false || ! $feed->title || ! $feed->url) {
|
if (! $feed->url) $feed->url = $reader->getUrl();
|
||||||
|
|
||||||
|
if (! $feed->title) {
|
||||||
write_debug();
|
write_debug();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user