moodle-expcontent/index.php

9 lines
190 B
PHP
Raw Permalink Normal View History

2021-07-06 14:08:32 +00:00
<?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');
}