XAPI: Fix message in launch attempts - refs BT#16742

pull/3683/head
Angel Fernando Quiroz Campos 5 years ago
parent 4e19f27bfd
commit 068e447eb6
  1. 4
      plugin/xapi/tincan/stats_attempts.ajax.php

@ -38,7 +38,7 @@ $toolLaunch = $em->find(
$student = api_get_user_entity($request->request->getInt('student'));
if (!$toolLaunch || !$student) {
echo Display::return_message(get_lang('NoResults'), 'error');
echo Display::return_message(get_lang('NotAllowed'), 'error');
exit;
}
@ -82,7 +82,7 @@ try {
)
);
} catch (NotFoundException $notFoundException) {
echo Display::return_message($notFoundException->getMessage(), 'error');
echo Display::return_message(get_lang('NoResults'), 'warning');
exit;
} catch (XApiException $exception) {
echo Display::return_message($exception->getMessage(), 'error');

Loading…
Cancel
Save