X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Flibs%2Fuser_functions.php;h=f2a659a14d0eea2ecd431929d2aeb81e1053d8ed;hp=0ef2a4c9034ee1fd22815d5168325582ba3e7cf1;hb=a28637f0eb7975f2240c42d349e5f08a9722d9bb;hpb=2a54b10c7d9da3b47d245b2911bed17b21a70414 diff --git a/inc/libs/user_functions.php b/inc/libs/user_functions.php index 0ef2a4c903..f2a659a14d 100644 --- a/inc/libs/user_functions.php +++ b/inc/libs/user_functions.php @@ -133,9 +133,9 @@ function addSortLinks ($letter, $sortby, $colspan, $return=false) { } // Add page navigation -function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false) { +function addPageNavigation ($pages, $offset, $showForm, $colspan, $return=false) { // @TODO These two constants are no longer used, maybe we reactivate this code? - //if ($show_form === true) { + //if ($showForm === true) { // // Load form for changing number of lines // define('__FORM_HEADER', loadTemplate('admin_list_user_sort_form', true)); // define('__FORM_FOOTER', ' '); @@ -146,7 +146,7 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false) //} $OUT = ''; - for ($page = 1; $page <= $PAGES; $page++) { + for ($page = 1; $page <= $pages; $page++) { if (($page == getRequestParameter('page')) || ((!isGetRequestParameterSet('page')) && ($page == 1))) { $OUT .= '-'; } else { @@ -172,7 +172,7 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false) $OUT .= ''; } - if ($page < $PAGES) $OUT .= ' | '; + if ($page < $pages) $OUT .= ' | '; } // END - for // Remember the list