diff --git a/core/modules/node/node.module b/core/modules/node/node.module index 2410b4e..97841bf 100644 --- a/core/modules/node/node.module +++ b/core/modules/node/node.module @@ -203,20 +203,17 @@ function node_title_list(StatementInterface $result, $title = NULL) { ]; $has_rows = TRUE; } - if ($has_rows) { - $heading = [ - 'text' => $title, - 'level' => 'h3', - ]; - return [ - '#theme' => 'links__node', - '#links' => $links, - '#heading' => $heading, - ]; - } - else { + if (!$has_rows) { return FALSE; } + return [ + '#theme' => 'links__node', + '#links' => $links, + '#heading' => [ + 'text' => $title, + 'level' => 'h3', + ], + ]; } /**