summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-11-10 17:41:15 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-11-10 17:41:15 +0000
commit211d65b94f3eb207f526e8b5973785022334829b (patch)
treee2160301b00eecc04af614784e12529413e5fc5d /modules/node.module
parentcc7a6b50175bc9742868731a1ada2e9cb8017489 (diff)
downloadbrdo-211d65b94f3eb207f526e8b5973785022334829b.tar.gz
brdo-211d65b94f3eb207f526e8b5973785022334829b.tar.bz2
- Fixing read more link showing when teaser is empty.
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module2
1 files changed, 1 insertions, 1 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.")));
}