Commit 211d65b9 authored by Kjartan's avatar Kjartan

- Fixing read more link showing when teaser is empty.

parent cc7a6b50
......@@ -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.")));
}
......
......@@ -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.")));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment