Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update split_page_results.php #40

Open
wants to merge 1 commit into from

1 participant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 14, 2014
  1. @omarjjcool
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 catalog/admin/includes/classes/split_page_results.php
View
4 catalog/admin/includes/classes/split_page_results.php
@@ -35,6 +35,10 @@ function splitPageResults(&$current_page_number, $max_rows_per_page, &$sql_query
$current_page_number = $num_pages;
}
$offset = ($max_rows_per_page * ($current_page_number - 1));
+ if ($offset < 0)
+ {
+ $offset = 0;
+ }
$sql_query .= " limit " . max($offset, 0) . ", " . $max_rows_per_page;
}
Something went wrong with that request. Please try again.