load(); if ($course && ($course->getType() == 'course')) { $users = $course->searchFacilitators($search_criteria); if ($users && is_array($users) && sizeof($users) > 0) { $data = ""; foreach ($users as $user) { $data .= ""; } echo json_encode($data); exit; } } } header("HTTP/1.1 404 Not Found"); header("Status: 404 Not Found"); exit; ?>