diff --git a/blog/rsslib.php b/blog/rsslib.php index 73cd5ee47f8..22c9612fd9f 100644 --- a/blog/rsslib.php +++ b/blog/rsslib.php @@ -158,6 +158,11 @@ function blog_rss_get_params($filters) { function blog_rss_get_feed($context, $args) { global $CFG, $SITE, $DB; + if (empty($CFG->enableblogs)) { + 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 '';