diff --git a/functions.php b/functions.php index 18546ca18..f9f024cbc 100644 --- a/functions.php +++ b/functions.php @@ -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) {