Changeset 2773

Show
Ignore:
Timestamp:
07/14/08 20:07:24 (2 months ago)
Author:
bchoate
Message:

Fix for invalid searchmaxresults param if given.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-41/lib/MT/App/Search.pm

    r2738 r2773  
    103103            $app->config->$key() : ($q->param($key) || $app->config->$key()); 
    104104    } 
     105    $app->{searchparam}{SearchMaxResults} =~ s/\D//g 
     106        if defined ($app->{searchparam}{SearchMaxResults}); 
    105107 
    106108    $app->{searchparam}{Type} = 'entry';