Changeset 522


Ignore:
Timestamp:
Oct 19, 2012, 4:44:46 PM (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Another couple of hack-patches to de-noise search.cgi. See #31.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/search.cgi

    r521 r522  
    161161
    162162  # If we're not supposed to search for all types, search for the selected types.
     163  $webvar{alltypes} = '' if !$webvar{alltypes};
     164  $webvar{typeexclude} = '' if !$webvar{typeexclude};
    163165  if ($webvar{alltypes} ne 'on') {
    164166    $sql .= " $sqlconcat (select $cols from searchme where $webvar{typeexclude} type in (";
     
    172174  # If we're not supposed to search for all cities, search for the selected cities.
    173175  # This could be vastly improved with proper foreign keys in the database.
     176  $webvar{allcities} = '' if !$webvar{allcities};
     177  $webvar{cityexclude} = '' if !$webvar{cityexclude};
    174178  if ($webvar{allcities} ne 'on') {
    175179    $sql .= " $sqlconcat (select $cols from searchme where $webvar{cityexclude} city in (";
     
    304308print $page->output;
    305309
     310$sth->finish;
    306311# Shut down and clean up.
    307312finish($ip_dbh);
Note: See TracChangeset for help on using the changeset viewer.