moodle-expcontent/index.php
2021-07-06 16:08:32 +02:00

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');
}