summaryrefslogtreecommitdiff
path: root/paginate.php
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2022-03-18 23:38:15 +0800
committerchai <chaifix@163.com>2022-03-18 23:38:15 +0800
commitb970e38c6cbde1e573c1d7a1d1b1685c1ca5bde1 (patch)
tree1c61a26bf0970ce8fc0b2b11d547b926c403ef82 /paginate.php
parentf63d8e742f6f1cd0321acfd9ffcfd71afd6c956d (diff)
*admin login
Diffstat (limited to 'paginate.php')
-rw-r--r--paginate.php20
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>