update_rss_feed: misc fixes
This commit is contained in:
parent
6eb8d32d96
commit
a9ac55ea76
1 changed files with 6 additions and 3 deletions
|
@ -772,9 +772,11 @@
|
|||
if ($use_simplepie) {
|
||||
$links = $rss->get_links('hub');
|
||||
|
||||
foreach ($links as $l) {
|
||||
$feed_hub_url = $l;
|
||||
break;
|
||||
if ($links && is_array($links)) {
|
||||
foreach ($links as $l) {
|
||||
$feed_hub_url = $l;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
@ -789,6 +791,7 @@
|
|||
for ($i = 2; $i <= $atom['link#']; $i++) {
|
||||
if ($atom["link#$i@rel"] == 'hub') {
|
||||
$feed_hub_url = $atom["link#$i@href"];
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue