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.news.php

    r1666 r1668  
    150150 
    151151            // now add a query limit, make sure not to overshoot the limit requested 
    152             if ($limit > 0) { 
    153                 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 
    154                     $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 
    155                 } else { 
    156                     $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 
    157                 } 
     152            if ($variables['rows']-$rowstart > $settings['numofthreads']) { 
     153                $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 
     154            } else { 
     155                $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 
    158156            } 
    159157            $rptresult = dbquery($sql); 
Note: See TracChangeset for help on using the changeset viewer.