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.

This commit is contained in:
Jeffery To 2009-06-14 17:03:22 +08:00
parent 77c94c44a6
commit 43680ed0c2

View File

@ -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()) {