Ignore:
Timestamp:
08/21/08 22:23:11 (4 years ago)
Author:
hverton
Message:

fixed to many records issue after an unlimited search\nfixed not able to login after v7.1 to v7.2 upgrade

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/search/search.articles.php

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