Aleksander Machniak
2016-05-22 0344b168276f80189e2254c75a762aff5b517b6b
program/steps/mail/pagenav.inc
@@ -1,6 +1,6 @@
<?php
/*
/**
 +-----------------------------------------------------------------------+
 | 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();