From: Jeffery To Date: Sun, 14 Jun 2009 09:03:22 +0000 (+0800) Subject: Fixes two PHP Warnings ("Invalid argument supplied for foreach() in /var/www/mmmu... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=43680ed0c2cf83448d755fa1edff42711d06a82c;p=quix0rs-gnu-social.git 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. --- diff --git a/actions/grouprss.php b/actions/grouprss.php index 0b7280a11c..2bdcaafb27 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()) {