From 56003fb90a06ea46c9d4c88bfe0e69e1b52c7d53 Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 2 Apr 2008 08:20:43 +0000 Subject: [PATCH] =?UTF-8?q?rss=5Freader=20=EC=9C=84=EC=A0=AF=EC=97=90?= =?UTF-8?q?=EC=84=9C=20item=EC=9D=B4=201=EA=B0=9C=EC=9D=BC=EA=B2=BD?= =?UTF-8?q?=EC=9A=B0=20=EC=83=9D=EA=B8=B0=EB=8A=94=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4063 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- widgets/rss_reader/rss_reader.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/widgets/rss_reader/rss_reader.class.php b/widgets/rss_reader/rss_reader.class.php index 2712cec8d..a460e3d72 100644 --- a/widgets/rss_reader/rss_reader.class.php +++ b/widgets/rss_reader/rss_reader.class.php @@ -60,11 +60,13 @@ $rss->title = $xml_doc->rss->channel->title->body; $rss->link = $xml_doc->rss->channel->link->body; - if(!is_array($xml_doc->rss->channel->item)) return; + $items = $xml_doc->rss->channel->item; + if(!$items) return; + if($items && !is_array($items)) $items = array($items); $rss_list = array(); - foreach ($xml_doc->rss->channel->item as $key => $value) { + foreach ($items as $key => $value) { if($key >= $PAGE_LIMIT) break; unset($item);