MDL-28945 course_reports: Fixed up pagination issue

This commit is contained in:
Sam Hemelryk 2011-10-19 16:50:23 +13:00
parent 9a23f94bd9
commit 7229f239f3
2 changed files with 14 additions and 6 deletions

View File

@ -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) {

View File

@ -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) {