Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace:

Diff

410
 
448
 
448
 
database.php
_> 11 <?php
  22 /*
<> 3 -  $Id: database.php 410 2006-01-26 09:17:09Z hpdl $
   3+  $Id: database.php 448 2006-02-21 06:27:28Z hpdl $
44 
  55   osCommerce, Open Source E-Commerce Solutions
  66   http://www.oscommerce.com
     
 !
578578       $this->batch_rows = $maximum_rows;
  579579       $this->batch_select_field = (empty($select_field) ? '*' : $select_field);
  580580 
<> 581 -      $from = ($this->batch_number * $maximum_rows) - $maximum_rows;
   581+      $from = max(($this->batch_number * $maximum_rows) - $maximum_rows, 0);
<_ 582582 
  583583       $this->sql_query = $this->db_class->setBatchLimit($this->sql_query, $from, $maximum_rows);
  584584