some is_array() sanity checks for content (possible fix for #49)
This commit is contained in:
parent
1f0d3e0765
commit
c22789da91
|
@ -301,8 +301,12 @@
|
|||
|
||||
$iterator = $rss->items;
|
||||
|
||||
if (!$iterator) $iterator = $rss->entries;
|
||||
if (!$iterator) $iterator = $rss;
|
||||
if (!$iterator || !is_array($iterator)) $iterator = $rss->entries;
|
||||
if (!$iterator || !is_array($iterator)) $iterator = $rss;
|
||||
|
||||
if (!is_array($iterator)) {
|
||||
return; // WTF?
|
||||
}
|
||||
|
||||
foreach ($iterator as $item) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue