From 30170a63c828408bb336e89e3dade6528834db80 Mon Sep 17 00:00:00 2001 From: "GTDarkNightmare@gmail.com" Date: Sun, 28 Aug 2011 14:09:10 +0000 Subject: [PATCH] r261 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Фикс pagination в группах git-svn-id: https://torrentpier2.googlecode.com/svn/trunk@261 a8ac35ab-4ca4-ca47-4c2d-a49a94f06293 --- upload/config.php | 2 +- upload/includes/functions.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/config.php b/upload/config.php index bac906f94..366b2c8d6 100644 --- a/upload/config.php +++ b/upload/config.php @@ -57,7 +57,7 @@ $bb_cfg['css_ver'] = 1; // Increase number of revision after update $bb_cfg['tp_version'] = '2.1 Stable'; -$bb_cfg['tp_release_state'] = 'R260'; +$bb_cfg['tp_release_state'] = 'R261'; $bb_cfg['tp_release_date'] = '28-08-2011'; $bb_cfg['board_disabled_msg'] = 'форум временно отключен'; // 'forums temporarily disabled'; // show this msg if board has been disabled via ON/OFF trigger diff --git a/upload/includes/functions.php b/upload/includes/functions.php index add2424f8..17d8ce56c 100644 --- a/upload/includes/functions.php +++ b/upload/includes/functions.php @@ -1732,7 +1732,7 @@ function generate_pagination($base_url, $num_items, $per_page, $start_item, $add $total_pages = ceil($num_items/$per_page); - if ( $total_pages == 1 ) + if ( $total_pages == 1 || $num_items == 0 ) { return ''; }