Minor - format code

pull/3659/head
Julio Montoya 5 years ago
parent 09e19d23dc
commit f489b52b08
  1. 2
      main/exercise/answer.class.php
  2. 5
      main/inc/ajax/exercise.ajax.php

@ -46,8 +46,6 @@ class Answer
private $exercise; private $exercise;
/** /**
* constructor of the class.
*
* @author Olivier Brouckaert * @author Olivier Brouckaert
* *
* @param int $questionId that answers belong to * @param int $questionId that answers belong to

@ -725,7 +725,6 @@ switch ($action) {
if ($debug) { if ($debug) {
error_log('duration to save in DB:'.$duration); error_log('duration to save in DB:'.$duration);
} }
Session::write('duration_time', [$key => $now]); Session::write('duration_time', [$key => $now]);
Event::updateEventExercise( Event::updateEventExercise(
$exeId, $exeId,
@ -776,6 +775,10 @@ switch ($action) {
} }
if ($type === 'all') { if ($type === 'all') {
if ($debug) {
error_log("result: ok - all");
error_log(" ------ end ajax call ------- ");
}
echo 'ok'; echo 'ok';
exit; exit;
} }

Loading…
Cancel
Save