]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge commit 'jeff-themovie/group-rss-empty' into 0.8.x
authorZach Copley <zach@controlyourself.ca>
Tue, 30 Jun 2009 22:12:50 +0000 (15:12 -0700)
committerZach Copley <zach@controlyourself.ca>
Tue, 30 Jun 2009 22:12:50 +0000 (15:12 -0700)
* 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.

actions/grouprss.php

index 0b7280a11c33648584096b95176eafb63fea7835..2bdcaafb27a56e17ea1bd556741e34ba70880599 100644 (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()) {