diff options
author | Andrew Dolgov <[email protected]> | 2019-03-16 15:35:18 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2019-03-16 15:35:18 +0300 |
commit | 375c4c28a02830ff4b7189377ffa7bdb12744339 (patch) | |
tree | d71491eff44313c0d926641ad506457bf2f45e3c | |
parent | eab568065fda670d81f2cfdbf1efc86cd6f90ad0 (diff) | |
parent | 33a2d5f8e46681986a501143df835f94d5325466 (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
-rwxr-xr-x | classes/rssutils.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/classes/rssutils.php b/classes/rssutils.php index 8feffa662..82a6963e8 100755 --- a/classes/rssutils.php +++ b/classes/rssutils.php @@ -263,7 +263,7 @@ class RSSUtils { $pdo = Db::pdo(); - $sth = $pdo->prepare("SELECT title FROM ttrss_feeds WHERE id = ?"); + $sth = $pdo->prepare("SELECT title, site_url FROM ttrss_feeds WHERE id = ?"); $sth->execute([$feed]); if (!$row = $sth->fetch()) { @@ -273,11 +273,12 @@ class RSSUtils { } $title = $row["title"]; + $site_url = $row["site_url"]; // feed was batch-subscribed or something, we need to get basic info // this is not optimal currently as it fetches stuff separately TODO: optimize - if ($title == "[Unknown]") { - Debug::log("setting basic feed info for $feed..."); + if ($title == "[Unknown]" || !$title || !$site_url) { + Debug::log("setting basic feed info for $feed [$title, $site_url]..."); RSSUtils::set_basic_feed_info($feed); } |