Validate user exists - refs #7363

1.10.x
Angel Fernando Quiroz Campos 10 years ago
parent 33e9b601c0
commit fc96f8f12c
  1. 6
      main/gradebook/search.php

@ -42,6 +42,12 @@ if ($searchForm->validate()) {
} elseif ($userId > 0) {
$userInfo = api_get_user_info($userId);
if (empty($userInfo)) {
Session::write('message', Display::return_message(get_lang('NoUser'), 'warning'));
Header::location(api_get_self());
}
$courseList = GradebookUtils::getUserCertificatesInCourses($userId, false);
$sessionList = GradebookUtils::getUserCertificatesInSessions($userId, false);

Loading…
Cancel
Save