Merge branch 'MDL-31599' of git://github.com/danpoltawski/moodle

This commit is contained in:
Aparup Banerjee 2012-08-06 16:43:19 +08:00
commit fb87c4c96c

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;
}