summaryrefslogtreecommitdiff
path: root/classes/RSSUtils.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/RSSUtils.php')
-rw-r--r--classes/RSSUtils.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/classes/RSSUtils.php b/classes/RSSUtils.php
index bfa79de71..540069b6a 100644
--- a/classes/RSSUtils.php
+++ b/classes/RSSUtils.php
@@ -305,9 +305,8 @@ class RSSUtils {
if ($feed_data) {
$rss = new FeedParser($feed_data);
- $rss->init();
- if (!$rss->error()) {
+ if ($rss->init()) {
$basic_info = [
'title' => mb_substr(clean($rss->get_title()), 0, 199),
'site_url' => mb_substr(UrlHelper::rewrite_relative($feed->feed_url, clean($rss->get_link())), 0, 245),
@@ -590,9 +589,8 @@ class RSSUtils {
}
$rss = new FeedParser($feed_data);
- $rss->init();
- if (!$rss->error()) {
+ if ($rss->init()) {
Debug::log("running HOOK_FEED_PARSED handlers...", Debug::LOG_VERBOSE);