9 lines
190 B
PHP
9 lines
190 B
PHP
|
<?php
|
||
|
|
||
|
require_once('../../config.php');
|
||
|
|
||
|
$id = required_param('id', PARAM_INT);
|
||
|
|
||
|
if (!$course = $DB->get_record('course', array('id'=> $id))) {
|
||
|
print_error('Course ID is incorrect');
|
||
|
}
|