Bugfix in the page selector on/off option
authorphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Nov 2001 08:26:40 +0000 (08:26 +0000)
committerphilippe_mingo <philippe_mingo@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 23 Nov 2001 08:26:40 +0000 (08:26 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1790 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/mailbox_display.php

index aeb5285bb2bf03b136d95eb9ac52da6cd6a8ffe9..d6f76ab66e1afe95408bfdb61d8e2ac5f967b4bd 100644 (file)
 
         /* Page selector block. Following code computes page links. */
         $mMore = '';
 
         /* 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 ) );
                && ($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 ) );