diff options
author | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-19 22:24:24 +0000 |
---|---|---|
committer | Steven Wittens <steven@10.no-reply.drupal.org> | 2005-02-19 22:24:24 +0000 |
commit | bb08146c67386699cb78c50bcb7e962df776eb81 (patch) | |
tree | dc50f04b148d27e8aac45faa94eb4ffe2c783854 /modules/node/node.module | |
parent | 79f6941e9b0f84a5ac8dcc1980b7324dfbd88c89 (diff) | |
download | brdo-bb08146c67386699cb78c50bcb7e962df776eb81.tar.gz brdo-bb08146c67386699cb78c50bcb7e962df776eb81.tar.bz2 |
- Fixing broken search after sql rewrite patches
- Minor code style fixes.
Diffstat (limited to 'modules/node/node.module')
-rw-r--r-- | modules/node/node.module | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 48cd68264..008de3dd4 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -590,7 +590,7 @@ function node_search($op = 'search', $keys = null) { return array('remaining' => $remaining, 'total' => $total); case 'search': list($join, $where) = _db_rewrite_sql(); - $find = do_search($keys, 'node', 'INNER JOIN {node} n ON n.nid = i.sid '. $join .' INNER JOIN {users} u ON n.uid = u.uid', 'n.status = 1 AND '. $where); + $find = do_search($keys, 'node', 'INNER JOIN {node} n ON n.nid = i.sid '. $join .' INNER JOIN {users} u ON n.uid = u.uid', 'n.status = 1'. (empty($where) ? '' : ' AND '. $where)); $results = array(); foreach ($find as $item) { $node = node_load(array('nid' => $item)); |