Changeset 520 for trunk


Ignore:
Timestamp:
10/19/12 16:18:47 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Minor tweak to search.cgi to clean up some error-log noise. See #31.

File:
1 edited

Legend:

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

    r517 r520  
    315315# Creates appropriate SQL to run the search and display the results
    316316# with queryResults()
    317 sub viewBy($$) {
     317sub viewBy {
    318318  my ($category,$query) = @_;
    319319
     
    445445# Display search queries based on the passed SQL.
    446446# Takes SQL, page number (for multipage search results), and a total count.
    447 sub queryResults($$$) {
     447sub queryResults {
    448448  my ($sql, $pageNo, $rowCount) = @_;
    449449  my $offset = 0;
     
    529529# Return count of rows to be returned in a "real" query
    530530# with the passed SQL statement
    531 sub countRows($) {
     531sub countRows {
    532532  # Note that the "as foo" is required
    533533  my $sth = $ip_dbh->prepare("select count(*) from ($_[0]) as foo");
Note: See TracChangeset for help on using the changeset viewer.