Commit d388033e authored by natrak's avatar natrak

- Minor bug fix in node_links().

parent dc4a5bfc
......@@ -249,8 +249,8 @@ function node_links(&$links, &$node, $main = 0) {
if ($node->body) $_links[] = array("node.php?id=$node->nid", t("read more"));
if ($node->comment) $_links[] = array("node.php?id=$node->nid", format_plural(node_get_comments($node->nid), "comment", "comments"));
}
$links = array_merge($_links, $links);
return $links;
$links = ($links ? array_merge($_links, $links) : $_links);
return count($links) ? $links : 0;
}
?>
\ No newline at end of file
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