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