From: philippe_mingo Date: Fri, 23 Nov 2001 08:26:40 +0000 (+0000) Subject: Bugfix in the page selector on/off option X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=c5a9e036b114a84d270b255e2cac8daf7f1f8f7f Bugfix in the page selector on/off option git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1790 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index aeb5285b..d6f76ab6 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -687,7 +687,7 @@ /* Page selector block. Following code computes page links. */ $mMore = ''; - if (!getPref($data_dir, $username, 'page_selector') + if (getPref($data_dir, $username, 'page_selector') && ($num_msgs > $show_num)) { $j = intval( $num_msgs / $show_num ); // Max pages $k = max( 1, $j / getPref($data_dir, $username, 'page_selector_max', PG_SEL_MAX ) );