From 211d65b94f3eb207f526e8b5973785022334829b Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Sun, 10 Nov 2002 17:41:15 +0000 Subject: - Fixing read more link showing when teaser is empty. --- modules/node/node.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/node/node.module') diff --git a/modules/node/node.module b/modules/node/node.module index 38718cb52..01098eb57 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -395,7 +395,7 @@ function node_link($type, $node = 0, $main = 0) { $links = $node->links; } - if ($main == 1 && $node->teaser != $node->body) { + if ($main == 1 && $node->teaser && $node->teaser != $node->body) { $links[] = l(t("read more"), array("id" => $node->nid), "node", "", array("title" => t("Read the rest of this posting."))); } -- cgit v1.2.3