mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-23 17:21:28 +00:00
update_rss_feed: misc fixes
This commit is contained in:
@@ -772,9 +772,11 @@
|
|||||||
if ($use_simplepie) {
|
if ($use_simplepie) {
|
||||||
$links = $rss->get_links('hub');
|
$links = $rss->get_links('hub');
|
||||||
|
|
||||||
foreach ($links as $l) {
|
if ($links && is_array($links)) {
|
||||||
$feed_hub_url = $l;
|
foreach ($links as $l) {
|
||||||
break;
|
$feed_hub_url = $l;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -789,6 +791,7 @@
|
|||||||
for ($i = 2; $i <= $atom['link#']; $i++) {
|
for ($i = 2; $i <= $atom['link#']; $i++) {
|
||||||
if ($atom["link#$i@rel"] == 'hub') {
|
if ($atom["link#$i@rel"] == 'hub') {
|
||||||
$feed_hub_url = $atom["link#$i@href"];
|
$feed_hub_url = $atom["link#$i@href"];
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user