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.
This commit is contained in:
Dan Poltawski
2012-08-02 11:11:11 +08:00
parent 55a568fa7d
commit f534c1c0c0
+1 -1
View File
@@ -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;
}