moodle-expcontent/index.php

9 lines
No EOL
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');
}