summaryrefslogtreecommitdiff
path: root/program/steps/mail/list.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2010-05-06 08:05:05 +0000
committeralecpl <alec@alec.pl>2010-05-06 08:05:05 +0000
commit697298552b75297c996c98e84a0a3093724b43d1 (patch)
treeae70e1019ce853789fe3def24b819369b51c8b97 /program/steps/mail/list.inc
parent9800a825e7a98d3bd857f168e697555259098932 (diff)
- small fix for current_page setting
Diffstat (limited to 'program/steps/mail/list.inc')
-rw-r--r--program/steps/mail/list.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/steps/mail/list.inc b/program/steps/mail/list.inc
index 7682b8ca4..dcca80bc9 100644
--- a/program/steps/mail/list.inc
+++ b/program/steps/mail/list.inc
@@ -78,7 +78,7 @@ $pages = ceil($count/$IMAP->page_size);
$OUTPUT->set_env('messagecount', $count);
$OUTPUT->set_env('pagecount', $pages);
$OUTPUT->set_env('threading', (bool) $IMAP->threading);
-$OUTPUT->set_env('current_page', $IMAP->list_page);
+$OUTPUT->set_env('current_page', $count ? $IMAP->list_page : 1);
$OUTPUT->command('set_rowcount', rcmail_get_messagecount_text($count));
$OUTPUT->command('set_mailboxname', rcmail_get_mailbox_name_text());