diff --git a/nodewords.module b/nodewords.module
index 77ca8bb..2b15ed5 100644
--- a/nodewords.module
+++ b/nodewords.module
@@ -1294,7 +1294,7 @@ function _nodewords_detect_type_and_id() {
     return array('type' => NODEWORDS_TYPE_BLOG, 'id' => 0);
   }
 
-  if ($_GET['q'] == 'forum') {
+  if (module_exists('forum') && $_GET['q'] == 'forum') {
     return array('type' => NODEWORDS_TYPE_FORUM, 'id' => 0);
   }
 
