diff --git a/blog/rsslib.php b/blog/rsslib.php index f02a0f3fa0b..f5b8e311dc4 100644 --- a/blog/rsslib.php +++ b/blog/rsslib.php @@ -104,6 +104,11 @@ function blog_rss_get_params($filters) { function blog_rss_get_feed($context, $args) { global $CFG, $SITE, $DB; + if (empty($CFG->bloglevel)) { + debugging('Blogging disabled on this site, RSS feeds are not available'); + return null; + } + if (empty($CFG->enablerssfeeds)) { debugging('Sorry, RSS feeds are disabled on this site'); return '';