index.php 281 B

123456789
  1. <?php
  2. require_once('../../config.php');
  3. $id = required_param('id', PARAM_INT); // Course ID
  4. // Ensure that the course specified is valid
  5. if (!$course = $DB->get_record('course', array('id'=> $id))) {
  6. print_error('Course ID is incorrect');
  7. }