|
|
|
@ -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; |
|
|
|
} |
|
|
|
} |
|
|
|
|