From fd6360ecacd0e172378591d0a86f989697fcb0ea Mon Sep 17 00:00:00 2001 From: dhawes Date: Fri, 31 Dec 2004 03:11:03 +0000 Subject: [PATCH] minor bug fixes --- blocks/rss_client/block_rss_client.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blocks/rss_client/block_rss_client.php b/blocks/rss_client/block_rss_client.php index 0b79e48655..90f1ea6983 100644 --- a/blocks/rss_client/block_rss_client.php +++ b/blocks/rss_client/block_rss_client.php @@ -84,8 +84,10 @@ class block_rss_client extends block_base { // Daryl Hawes note: if count of rssidarray is greater than 1 // we should possibly display a drop down menu of selected feed titles // so user can select a single feed to view (similar to RSSFeed) - foreach ($rssidarray as $rssid) { - $output .= $this->get_rss_by_id($rssid, $display_description, $shownumentries); + if (!empty($rssidarray)) { + foreach ($rssidarray as $rssid) { + $output .= $this->get_rss_by_id($rssid, $display_description, $shownumentries); + } } $this->content->text = $output; -- 2.39.5