diff options
Diffstat (limited to 'program/steps/mail/pagenav.inc')
-rw-r--r-- | program/steps/mail/pagenav.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/program/steps/mail/pagenav.inc b/program/steps/mail/pagenav.inc index 59c131f69..74cca88f2 100644 --- a/program/steps/mail/pagenav.inc +++ b/program/steps/mail/pagenav.inc @@ -35,14 +35,19 @@ if ($prev) { $OUTPUT->set_env('prev_uid', $prev); $OUTPUT->command('enable_command', 'previousmessage', 'firstmessage', true); } + if ($next) { $OUTPUT->set_env('next_uid', $next); $OUTPUT->command('enable_command', 'nextmessage', 'lastmessage', true); } -if ($first) + +if ($first) { $OUTPUT->set_env('first_uid', $first); -if ($last) +} + +if ($last) { $OUTPUT->set_env('last_uid', $last); +} // Don't need a real messages count value $OUTPUT->set_env('messagecount', 1); @@ -54,4 +59,3 @@ $OUTPUT->command('set_rowcount', $RCMAIL->gettext(array( ))); $OUTPUT->send(); - |