Changeset 1668 in ExiteCMS for branches/PLi-Fusion/includes/search/search.forumattachments.php
- Timestamp:
- 08/21/08 22:24:35 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/includes/search/search.forumattachments.php
r1666 r1668 173 173 174 174 // now add a query limit, make sure not to overshoot the limit requested 175 if ($limit > 0) { 176 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 177 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 178 } else { 179 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 180 } 175 if ($variables['rows']-$rowstart > $settings['numofthreads']) { 176 $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 177 } else { 178 $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 181 179 } 182 180 $rptresult = dbquery($sql);
Note: See TracChangeset
for help on using the changeset viewer.
