diff --git a/modules/blog.module b/modules/blog.module
index ce01a57031d515d0624e54fa0a33db54840729aa..b73601973996a3f9c435dada993b1b64456059da 100644
--- a/modules/blog.module
+++ b/modules/blog.module
@@ -275,7 +275,7 @@ function blog_link($type, $node = 0) {
     $links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($user->userid) ."\">". t("view your blog") ."</a>";
   }
 
-  if ($type == "node" && $node) {
+  if ($type == "node" && $node->type == "blog") {
     $links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($node->userid) ."\">". strtr(t("%a's blog"), array("%a" => $node->userid)) ."</a>";
   }
 
diff --git a/modules/blog/blog.module b/modules/blog/blog.module
index ce01a57031d515d0624e54fa0a33db54840729aa..b73601973996a3f9c435dada993b1b64456059da 100644
--- a/modules/blog/blog.module
+++ b/modules/blog/blog.module
@@ -275,7 +275,7 @@ function blog_link($type, $node = 0) {
     $links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($user->userid) ."\">". t("view your blog") ."</a>";
   }
 
-  if ($type == "node" && $node) {
+  if ($type == "node" && $node->type == "blog") {
     $links[] = "<a href=\"module.php?mod=blog&op=view&name=". urlencode($node->userid) ."\">". strtr(t("%a's blog"), array("%a" => $node->userid)) ."</a>";
   }