Skip to content

Commit

Permalink
Better retrieval of table sortorder when not done directly through
Browse files Browse the repository at this point in the history
the table class, see SC#187.
  • Loading branch information
defacer committed Nov 12, 2005
1 parent 9ee129e commit c10ac04
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mod/assignment/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -628,9 +628,9 @@ function display_submission() {

global $CFG;

$userid = required_param('userid');
$offset = required_param('offset');//offset for where to start looking for student.
$sort = required_param('tsort');//getting the sorting order
$userid = required_param('userid', PARAM_INT);
$offset = required_param('offset', PARAM_INT);//offset for where to start looking for student.
$sort = required_param('tsort', PARAM_ALPHA);//getting the sorting order

if (!$user = get_record('user', 'id', $userid)) {
error('No such user!');
Expand Down

0 comments on commit c10ac04

Please sign in to comment.