Skip to content

Commit

Permalink
Fixed errors in refactoring ( rev3, almost there)
Browse files Browse the repository at this point in the history
  • Loading branch information
cap2501 committed Aug 29, 2006
1 parent 5281e0a commit dad4a8e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions course/format/topics/commands.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
$value = optional_param('value', 0, PARAM_INT); $value = optional_param('value', 0, PARAM_INT);
$column = optional_param('column', 0, PARAM_ALPHA); $column = optional_param('column', 0, PARAM_ALPHA);
$id = optional_param('id', 0, PARAM_INT); $id = optional_param('id', 0, PARAM_INT);
$summary = optional_param('summary', '', PARAM_INT); $summary = optional_param('summary', '', PARAM_ALPHA);
$sequence = optional_param('sequence', '', PARAM_INT); $sequence = optional_param('sequence', '', PARAM_ALPHANUM);
$visible = optional_param('visible', 0, PARAM_INT); $visible = optional_param('visible', 0, PARAM_INT);


// Authorise the user and verify some incoming data // Authorise the user and verify some incoming data
Expand Down Expand Up @@ -75,7 +75,7 @@




case 'sequence': case 'sequence':
$dataobject->sequence = $value; $dataobject->sequence = $sequence;
if (!update_record('course_sections',$dataobject)) { if (!update_record('course_sections',$dataobject)) {
error('Failed to update section'); error('Failed to update section');
} }
Expand Down

0 comments on commit dad4a8e

Please sign in to comment.