From c5a9e036b114a84d270b255e2cac8daf7f1f8f7f Mon Sep 17 00:00:00 2001 From: philippe_mingo Date: Fri, 23 Nov 2001 08:26:40 +0000 Subject: [PATCH] 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 --- functions/mailbox_display.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) ); -- 2.25.1