Aleksander Machniak
2015-06-17 3f4521bcf4b538b6ac54817cfad22b51e347546d
program/steps/mail/pagenav.inc
@@ -35,14 +35,19 @@
    $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->send();