some is_array() sanity checks for content (possible fix for #49)

master
Andrew Dolgov 19 years ago
parent 1f0d3e0765
commit c22789da91

@ -301,8 +301,12 @@
$iterator = $rss->items; $iterator = $rss->items;
if (!$iterator) $iterator = $rss->entries; if (!$iterator || !is_array($iterator)) $iterator = $rss->entries;
if (!$iterator) $iterator = $rss; if (!$iterator || !is_array($iterator)) $iterator = $rss;
if (!is_array($iterator)) {
return; // WTF?
}
foreach ($iterator as $item) { foreach ($iterator as $item) {

Loading…
Cancel
Save