Example #1
0
            $count = 1;
            foreach ($attemptQuestionList as $question) {
                if ($last['question_id'] == $question) {
                    break;
                }
                $count++;
            }
            $current_question = $count;
        }
    }
    if ($debug) {
        error_log("5  exercise_stat_info[] exists getting exe_id {$exe_id} ");
    }
}
// Array to check in order to block the chat
ExerciseLib::create_chat_exercise_session($exe_id);
if ($debug) {
    error_log('6. $objExercise->get_stat_track_exercise_info function called::  ' . print_r($exercise_stat_info, 1));
}
if (!empty($exercise_stat_info['questions_to_check'])) {
    $my_remind_list = $exercise_stat_info['questions_to_check'];
    $my_remind_list = explode(',', $my_remind_list);
    $my_remind_list = array_filter($my_remind_list);
}
$params = "exe_id={$exe_id}&exerciseId={$exerciseId}&origin={$origin}&learnpath_id={$learnpath_id}&learnpath_item_id={$learnpath_item_id}&learnpath_item_view_id={$learnpath_item_view_id}&" . api_get_cidreq();
if ($debug) {
    error_log("6.1 params: ->  {$params}");
}
if ($reminder == 2 && empty($my_remind_list)) {
    if ($debug) {
        error_log("6.2 calling the exercise_reminder.php ");