From 877143131d291bb889c7e021c59456ad1fe12209 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 8 Jul 2003 09:07:30 +0000 Subject: - Bugfix: don't show the "blog it" links when the blog module is disabled. Patch by Bart Jansens. --- modules/aggregator.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/aggregator.module') diff --git a/modules/aggregator.module b/modules/aggregator.module index 1926605b4..62d251125 100644 --- a/modules/aggregator.module +++ b/modules/aggregator.module @@ -111,7 +111,7 @@ function import_update() { function import_format_item($item, $feed = 0) { global $user; - if ($user->uid && user_access("maintain personal blog")) { + if ($user->uid && module_exist("blog") && user_access("maintain personal blog")) { $output .= "
". l("\"".", "node/add/blog&iid=$item->iid", array("title" => t("Comment on this news item in your personal blog."), "class" => "blog-it")) ."
"; } -- cgit v1.2.3