From 43680ed0c2cf83448d755fa1edff42711d06a82c Mon Sep 17 00:00:00 2001 From: Jeffery To Date: Sun, 14 Jun 2009 17:03:22 +0800 Subject: Fixes two PHP Warnings ("Invalid argument supplied for foreach() in /var/www/mmmu/lib/rssaction.php") when accessing the RSS feed of a group that has no notices. --- actions/grouprss.php | 1 + 1 file changed, 1 insertion(+) (limited to 'actions') diff --git a/actions/grouprss.php b/actions/grouprss.php index 0b7280a11..2bdcaafb2 100644 --- a/actions/grouprss.php +++ b/actions/grouprss.php @@ -116,6 +116,7 @@ class groupRssAction extends Rss10Action return null; } + $notices = array(); $notice = $group->getNotices(0, ($limit == 0) ? NOTICES_PER_PAGE : $limit); while ($notice->fetch()) { -- cgit v1.2.3-54-g00ecf