Merging from STABLE:

Better retrieval of table sortorder when not done directly through
the table class, see SC#187.
This commit is contained in:
defacer 2005-11-12 03:04:11 +00:00
parent e60b454b50
commit 4fdabdc36f

View File

@ -628,9 +628,9 @@ class assignment_base {
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!');