Skip to content

Commit

Permalink
* core/print_api.php:
Browse files Browse the repository at this point in the history
    print_page_links() - Fix for #3075: Do not display page links if only
		1 page exists for current view settings on view_all_bug_page.


git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2128 f5dc347c-c33d-0410-90a0-b07cc1902cb9
  • Loading branch information
int2str committed Mar 27, 2003
1 parent 3de4d4e commit 32a6e0d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions core/print_api.php
Expand Up @@ -6,7 +6,7 @@
# See the README and LICENSE files for details

# --------------------------------------------------------
# $Id: print_api.php,v 1.65 2003-03-21 05:55:52 vboctor Exp $
# $Id: print_api.php,v 1.66 2003-03-27 00:07:31 int2str Exp $
# --------------------------------------------------------

$t_core_dir = dirname( __FILE__ ).DIRECTORY_SEPARATOR;
Expand Down Expand Up @@ -335,8 +335,6 @@ function print_assign_to_option_list( $p_user_id='', $p_project_id = null ) {
}

foreach ( $t_users as $t_user ) {
$v_id = $val[1];
$v_username = $val[0];
echo '<option value="' . $t_user['id'] . '" ';
check_selected( $t_user['id'], $p_user_id );
echo '>' . $t_user['username'] . '</option>';
Expand Down Expand Up @@ -911,6 +909,13 @@ function print_page_links( $p_page, $p_start, $p_end, $p_current ) {
$t_items = array();
$t_link = "";

# Check if we have more than one page,
# otherwise return without doing anything.

if ( $p_end - $p_start < 1 ) {
return;
}

# Get localized strings
$t_first = lang_get( 'first' );
$t_last = lang_get( 'last' );
Expand Down

0 comments on commit 32a6e0d

Please sign in to comment.