From f534c1c0c03d40558e97686c31947867fdff6dbe Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Thu, 2 Aug 2012 11:08:28 +0800 Subject: [PATCH] MDL-31599 block_news - incorrect RSS feed for guest user Was previously using the userid 0, rather than guest to use authenticated RSS feed. Thanks to Paul Verrall at LUNS for helping me debug this. --- blocks/news_items/block_news_items.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/news_items/block_news_items.php b/blocks/news_items/block_news_items.php index d6515e8e147..5ecbec283fa 100644 --- a/blocks/news_items/block_news_items.php +++ b/blocks/news_items/block_news_items.php @@ -104,7 +104,7 @@ class block_news_items extends block_base { $tooltiptext = get_string('rsssubscriberssposts','forum'); } if (!isloggedin()) { - $userid = 0; + $userid = $CFG->siteguest; } else { $userid = $USER->id; }