Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Cahange intval with faster (int) operator

  • Loading branch information...
commit 4f4e7b23860a0948ac49612d468db6cb0332fb9d 1 parent f21c719
@acidvertigo acidvertigo authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 catalog/includes/classes/split_page_results.php
View
4 catalog/includes/classes/split_page_results.php
@@ -83,10 +83,10 @@ function display_links($max_page_links, $parameters = '') {
if ($this->current_page_number > 1) $display_links_string .= '<a href="' . tep_href_link(basename($PHP_SELF), $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" class="pageResults" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' "><u>' . PREVNEXT_BUTTON_PREV . '</u></a>&nbsp;&nbsp;';
// check if number_of_pages > $max_page_links
- $cur_window_num = intval($this->current_page_number / $max_page_links);
+ $cur_window_num = (int)($this->current_page_number / $max_page_links);
if ($this->current_page_number % $max_page_links) $cur_window_num++;
- $max_window_num = intval($this->number_of_pages / $max_page_links);
+ $max_window_num = (int)($this->number_of_pages / $max_page_links);
if ($this->number_of_pages % $max_page_links) $max_window_num++;
// previous window of pages
Please sign in to comment.
Something went wrong with that request. Please try again.