Skip to content

Commit

Permalink
MDL-28945 course_reports: Fixed up pagination issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Hemelryk committed Oct 19, 2011
1 parent 9a23f94 commit 7229f23
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
10 changes: 7 additions & 3 deletions course/report/completion/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,13 @@ function csv_quote($value) {
$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) {
Expand Down
10 changes: 7 additions & 3 deletions course/report/progress/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,13 @@ function csv_quote($value) {
$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) {
Expand Down

0 comments on commit 7229f23

Please sign in to comment.