mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Fixed pagination (#800)
This commit is contained in:
parent
b82299b0d1
commit
23544f4acf
7 changed files with 18 additions and 0 deletions
|
@ -1206,6 +1206,10 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add
|
|||
$total_pages = ceil($num_items / $per_page);
|
||||
|
||||
if ($total_pages == 1 || $num_items == 0) {
|
||||
$template->assign_vars(array(
|
||||
'PAGINATION' => false,
|
||||
));
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue