summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2009-06-14 17:03:22 +0800
committerJeffery To <jeffery.to@gmail.com>2009-06-14 17:03:22 +0800
commit43680ed0c2cf83448d755fa1edff42711d06a82c (patch)
tree616244723577df37c855d61e100e7a002fa84058
parent77c94c44a622052366dcc03fee522232672d71d9 (diff)
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.
-rw-r--r--actions/grouprss.php1
1 files changed, 1 insertions, 0 deletions
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()) {