--- taxonomy_dhtml.module-orig 2006-04-09 11:28:46.000000000 -0400 +++ taxonomy_dhtml.module 2006-12-07 16:57:56.000000000 -0500 @@ -132,8 +132,8 @@ for ($i=count($tree)-1; $i>=0 ; $i--) { $term = $tree[$i]; /* restrict to a single type if given */ - $type_q = ($type ? "n.type = '$type'" : 1); - $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.type, u.uid, u.name FROM {term_node} r LEFT JOIN {node} n ON r.nid = n.nid LEFT JOIN {users} u ON n.uid = u.uid WHERE n.status = 1 AND $type_q AND r.tid = '$term->tid' ORDER BY n.changed DESC"), 0, variable_get("taxonomy_dhtml_overview_count", 50)); + $type_q = ($type ? "n.type = '$type'" : "true"); + $result = db_query_range(db_rewrite_sql("SELECT n.nid, n.title, n.type, u.uid, u.name FROM {term_node} r LEFT JOIN {node} n ON r.nid = n.nid LEFT JOIN {users} u ON n.uid = u.uid WHERE n.status = 1 AND CAST($type_q AS BOOL) AND r.tid = '$term->tid' ORDER BY n.changed DESC"), 0, variable_get("taxonomy_dhtml_overview_count", 50)); while ($node = db_fetch_object($result)) { if (module_exist('comment')) { $detail = t("Author: %name, comments: %num", array ("%name" => strip_tags(theme('username', $node)), "%num" => comment_num_all($node->nid))); @@ -258,4 +258,4 @@ return $output; } -?> \ No newline at end of file +?>