diff options
-rw-r--r-- | modules/node.module | 2 | ||||
-rw-r--r-- | modules/node/node.module | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module index 38718cb52..01098eb57 100644 --- a/modules/node.module +++ b/modules/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."))); } 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."))); } |