diff options
author | chai <chaifix@163.com> | 2022-03-18 23:38:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-03-18 23:38:15 +0800 |
commit | b970e38c6cbde1e573c1d7a1d1b1685c1ca5bde1 (patch) | |
tree | 1c61a26bf0970ce8fc0b2b11d547b926c403ef82 /paginate.php | |
parent | f63d8e742f6f1cd0321acfd9ffcfd71afd6c956d (diff) |
*admin login
Diffstat (limited to 'paginate.php')
-rw-r--r-- | paginate.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/paginate.php b/paginate.php index c6ce295..e276f53 100644 --- a/paginate.php +++ b/paginate.php @@ -6,16 +6,16 @@ // echo $total_page ; // echo $url; - - for ($p=0; $p<$total_page; $p++) { - if($p == $current_page_index){ - html_paginate_link_current($url, $p); - } - else { - html_paginate_link($url, $p); - } - } - + if($total_page > 1){ + for ($p=0; $p<$total_page; $p++) { + if($p == $current_page_index){ + html_paginate_link_current($url, $p); + } + else { + html_paginate_link($url, $p); + } + } + } ?> </div> |