summaryrefslogtreecommitdiff
path: root/roundcubemail/program/steps
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-06 08:05:05 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2010-05-06 08:05:05 +0000
commit6c2badd658df76299b2400ed46d8b53325fb8d5f (patch)
tree104c624446c6d05c73ed90ba983470396f188547 /roundcubemail/program/steps
parent3f6959dbbfb64f59563e769c5acd4bee42bbc81e (diff)
- small fix for current_page setting
git-svn-id: https://svn.roundcube.net/trunk@3596 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/steps')
-rw-r--r--roundcubemail/program/steps/mail/list.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/roundcubemail/program/steps/mail/list.inc b/roundcubemail/program/steps/mail/list.inc
index 7682b8ca4..dcca80bc9 100644
--- a/roundcubemail/program/steps/mail/list.inc
+++ b/roundcubemail/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());