diff options
author | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-11-10 17:41:15 +0000 |
---|---|---|
committer | Kjartan Mannes <kjartan@2.no-reply.drupal.org> | 2002-11-10 17:41:15 +0000 |
commit | 211d65b94f3eb207f526e8b5973785022334829b (patch) | |
tree | e2160301b00eecc04af614784e12529413e5fc5d | |
parent | cc7a6b50175bc9742868731a1ada2e9cb8017489 (diff) | |
download | brdo-211d65b94f3eb207f526e8b5973785022334829b.tar.gz brdo-211d65b94f3eb207f526e8b5973785022334829b.tar.bz2 |
- Fixing read more link showing when teaser is empty.
-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."))); } |