load(); if ($course && ($course->getType() == 'course')) { $users = $course->searchForLearners($search_criteria); if ($users && is_array($users) && sizeof($users) > 0) { $data = ""; foreach ($users as $user) { $data .= '
  • '.$user["name"][0][0].', '.$user["email"][0][0].' '._("Select").'
  • '; } echo json_encode($data); exit; } } } header("HTTP/1.1 404 Not Found"); header("Status: 404 Not Found"); exit; ?>