Changeset 1863 in ExiteCMS


Ignore:
Timestamp:
10/18/08 10:42:09 (3 years ago)
Author:
hverton
Message:

fixed coding error causing page navigation to fail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/download_statistics/php-files/modules/download_statistics/report.topfiles.php

    r1621 r1863  
    8787 
    8888                // now add a query limit, make sure not to overshoot the limit requested 
    89                 if ($top > 0) { 
    90                     if ($variables['rows']-$rowstart > $settings['numofthreads']) { 
    91                         $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 
    92                     } else { 
    93                         $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 
    94                     } 
     89                if ($variables['rows']-$rowstart > $settings['numofthreads']) { 
     90                    $sql .= " LIMIT ".$rowstart.",".$settings['numofthreads']; 
     91                } else { 
     92                    $sql .= " LIMIT ".$rowstart.",".($variables['rows']-$rowstart); 
    9593                } 
    96                 $rptresult = mysql_query($sql); 
     94                $rptresult = die($sql); 
    9795 
    9896                // get the results 
Note: See TracChangeset for help on using the changeset viewer.