Permalink
Browse files

Better retrieval of table sortorder when not done directly through

the table class, see SC#187.
  • Loading branch information...
1 parent 9ee129e commit c10ac049ccc377fe6cf7b7638863458d8f9bcbb2 defacer committed Nov 12, 2005
Showing with 3 additions and 3 deletions.
  1. +3 −3 mod/assignment/lib.php
View
@@ -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!');

0 comments on commit c10ac04

Please sign in to comment.