mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 11:46:19 +01:00
MDL-28945 course_reports: Fixed up pagination issue
This commit is contained in:
parent
9a23f94bd9
commit
7229f239f3
@ -274,9 +274,13 @@ if($total > COMPLETION_REPORT_PAGE) {
|
||||
$pagingbar .= get_string('page').': ';
|
||||
|
||||
$sistrings = array();
|
||||
$sistrings[] = $sifirst != 'all' ? "sifirst={$sifirst}" : null;
|
||||
$sistrings[] = $silast != 'all' ? "silast={$silast}" : null;
|
||||
$sistring = !empty($sistrings) ? implode('&', $sistrings) : '';
|
||||
if ($sifirst != 'all') {
|
||||
$sistrings[] = "sifirst={$sifirst}";
|
||||
}
|
||||
if ($silast != 'all') {
|
||||
$sistrings[] = "silast={$silast}";
|
||||
}
|
||||
$sistring = !empty($sistrings) ? '&'.implode('&', $sistrings) : '';
|
||||
|
||||
// Display previous link
|
||||
if ($start > 0) {
|
||||
|
@ -206,9 +206,13 @@ if($total > COMPLETION_REPORT_PAGE) {
|
||||
$pagingbar .= get_string('page').': ';
|
||||
|
||||
$sistrings = array();
|
||||
$sistrings[] = $sifirst != 'all' ? "sifirst={$sifirst}" : null;
|
||||
$sistrings[] = $silast != 'all' ? "silast={$silast}" : null;
|
||||
$sistring = !empty($sistrings) ? implode('&', $sistrings) : '';
|
||||
if ($sifirst != 'all') {
|
||||
$sistrings[] = "sifirst={$sifirst}";
|
||||
}
|
||||
if ($silast != 'all') {
|
||||
$sistrings[] = "silast={$silast}";
|
||||
}
|
||||
$sistring = !empty($sistrings) ? '&'.implode('&', $sistrings) : '';
|
||||
|
||||
// Display previous link
|
||||
if ($start > 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user