/[jquery]/no_pager/index.cgi
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /no_pager/index.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 23 by dpavlin, Thu Aug 17 19:18:26 2006 UTC revision 24 by dpavlin, Thu Aug 17 21:16:18 2006 UTC
# Line 97  sub get_results { Line 97  sub get_results {
97          my $out;          my $out;
98    
99          if (defined($nres)) {          if (defined($nres)) {
100    
101                    if ($nres->doc_num == 0) {
102                            $v->{status} = qq{<strong>Error getting results for page $page.</strong>};
103                            return next_page('<strong>No results found.</strong>');
104                    }
105    
106                  $v->{hits} = $nres->hits;                  $v->{hits} = $nres->hits;
107                  $v->{time} = $nres->hint('TIME');                  $v->{time} = $nres->hint('TIME');
108                  $v->{max_page} = int( ($nres->hits + $on_page - 1) / $on_page );                  $v->{max_page} = int( ($nres->hits + $on_page - 1) / $on_page );

Legend:
Removed from v.23  
changed lines
  Added in v.24

  ViewVC Help
Powered by ViewVC 1.1.26