From 18ec47d71b8a0b4e5f6f7bf1e0af2877c2abcc9c Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sat, 14 Jul 2001 13:56:59 +0000
Subject: [PATCH] - blog.module:    + small visual improvement

---
 modules/blog.module      | 2 +-
 modules/blog/blog.module | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/blog.module b/modules/blog.module
index ce01a57031d5..b73601973996 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 ce01a57031d5..b73601973996 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>";
   }
 
-- 
GitLab