Changeset 522
- Timestamp:
- 10/19/12 16:44:46 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/cgi-bin/search.cgi
r521 r522 161 161 162 162 # 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}; 163 165 if ($webvar{alltypes} ne 'on') { 164 166 $sql .= " $sqlconcat (select $cols from searchme where $webvar{typeexclude} type in ("; … … 172 174 # If we're not supposed to search for all cities, search for the selected cities. 173 175 # This could be vastly improved with proper foreign keys in the database. 176 $webvar{allcities} = '' if !$webvar{allcities}; 177 $webvar{cityexclude} = '' if !$webvar{cityexclude}; 174 178 if ($webvar{allcities} ne 'on') { 175 179 $sql .= " $sqlconcat (select $cols from searchme where $webvar{cityexclude} city in ("; … … 304 308 print $page->output; 305 309 310 $sth->finish; 306 311 # Shut down and clean up. 307 312 finish($ip_dbh);
Note:
See TracChangeset
for help on using the changeset viewer.