summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-06-30 15:12:50 -0700
committerZach Copley <zach@controlyourself.ca>2009-06-30 15:12:50 -0700
commitc2c631d19dad52e528d633ddd6729bf35d9fd60c (patch)
tree17f964ae70de5d7ecccda5031e3541f7a41ee2cb
parent907b5f7b406d87c438a560e04385318662163755 (diff)
parentabd74673921cd119e05089d3cce2f0a37fdb49fe (diff)
Merge commit 'jeff-themovie/group-rss-empty' into 0.8.x
* commit 'jeff-themovie/group-rss-empty': 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()) {