$unit_id = '';
$course_id = '';
if (isset($_GET['course_id']) && is_numeric($_GET['course_id'])) {
    $course_id = (int) $_GET['course_id'];
}
if (isset($_GET['unit_id']) && is_numeric($_GET['unit_id'])) {
    $unit_id = (int) $_GET['unit_id'];
}
$course = new Course($course_id);
if (empty($course)) {
    $course = new StdClass();
} else {
    $course_object = $course->get_course();
}
$units = $course->get_units();
$students_count = $course->get_number_of_students();
?>

<div class="wrap nosubsub course-details cp-wrap">
	<div class="icon32" id="icon-themes"><br></div>
	<?php 
$tab = isset($_GET['tab']) ? $_GET['tab'] : '';
if (empty($tab)) {
    $tab = 'overview';
}
?>

	<h2><?php 
if ($course_id == '') {
    _e('New Course', 'cp');
}