Ignore:
Timestamp:
08/21/08 22:24:35 (4 years ago)
Author:
hverton
Message:

Merged trunk revisions 1666:1667 into the PLi-Fusion branch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PLi-Fusion/includes/search/search.forumposts.php

    r1666 r1668  
    172172 
    173173            // now add a query limit, make sure not to overshoot the limit requested 
    174             if ($limit > 0) { 
    175                 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 
    176                     $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 
    177                 } else { 
    178                     $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 
    179                 } 
     174            if ($variables['rows']-$rowstart > $settings['numofthreads']) { 
     175                $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 
     176            } else { 
     177                $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 
    180178            } 
    181179            $rptresult = dbquery($sql); 
Note: See TracChangeset for help on using the changeset viewer.