summaryrefslogtreecommitdiff
path: root/modules/node.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node.module')
-rw-r--r--modules/node.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node.module b/modules/node.module
index c548741a2..a25643727 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -692,7 +692,7 @@ function node_search($op = 'search', $keys = null) {
$ranking[] = '%d * (2.0 - 2.0 / (1.0 + nc.totalcount * %f))';
$arguments2[] = $weight;
$arguments2[] = $scale;
- $join2 .= ' LEFT JOIN {node_counter} nc ON n.nid = nc.nid';
+ $join2 .= ' LEFT JOIN {node_counter} nc ON nc.nid = i.sid';
}
$select2 = (count($ranking) ? implode(' + ', $ranking) : 'i.relevance') . ' AS score';
@@ -2156,7 +2156,7 @@ function node_form_alter($form_id, &$form) {
'#type' => 'submit',
'#value' => t('Advanced search'),
'#prefix' => '<div class="action">',
- '#suffix' => '</div><br clear="all" />',
+ '#suffix' => '</div><br class="clear" />',
);
$form['#validate']['node_search_validate'] = array();