User: mindless Branch: DRUPAL-4-7 Date: Thu, 25 Jan 2007 16:30:24 +0000 Modified files: /modules/trip_search trip_search.module Log message: Misc fixes: @@163: check for empty taxonomy_terms, in case user clicks radiobutton for taxonomy search, but doesn't select any categories; this avoids php error @@200: $form_type is not defined here, change it to 'basic' and move the comment saying "advanced search part" a little further down @@222: the search has already been done, one line above.. remove repeat @@1381: $query is not defined here, don't pass it as a parameter @@1388: $query is passed by reference, don't need to also assign it from return value @@1408: remove unneeded if; $find is initialized to array(), ok to return that if empty @@1429: 'nodes' is not a handled $op, just make the default NULL @@1436: remove unneeded &. also check against $query->search_string to see if MATCHES should be added to query; $query may be nonempty due to other search terms even if requires/excludes are empty @@1469: remove unneeded joins @@1492: refactor to use IN or = instead of a series of ORs. also fix taxonomy search against a category with subcategories (get depth 1 instead of zero) @@1535: use $max instead of hardcoded 500. also remove unneeded db_num_rows check.. db_fetch_object will return false if there are no rows, $num isn't used anywhere Links: http://cvs.drupal.org/diff.php?path=contributions/modules/trip_search/trip_s...