--- taxonomy_dhtml.module-2.6.3 2005-10-07 15:08:06.000000000 -0500 +++ taxonomy_dhtml.module 2005-10-27 14:42:21.000000000 -0500 @@ -145,7 +145,7 @@ 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); + $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 $type_q 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')) {