diff --git a/modules/blog.module b/modules/blog.module index ce01a57031d..b7360197399 100644 --- a/modules/blog.module +++ b/modules/blog.module @@ -275,7 +275,7 @@ function blog_link($type, $node = 0) { $links[] = "userid) ."\">". t("view your blog") .""; } - if ($type == "node" && $node) { + if ($type == "node" && $node->type == "blog") { $links[] = "userid) ."\">". strtr(t("%a's blog"), array("%a" => $node->userid)) .""; } diff --git a/modules/blog/blog.module b/modules/blog/blog.module index ce01a57031d..b7360197399 100644 --- a/modules/blog/blog.module +++ b/modules/blog/blog.module @@ -275,7 +275,7 @@ function blog_link($type, $node = 0) { $links[] = "userid) ."\">". t("view your blog") .""; } - if ($type == "node" && $node) { + if ($type == "node" && $node->type == "blog") { $links[] = "userid) ."\">". strtr(t("%a's blog"), array("%a" => $node->userid)) .""; }