unset($testsInfo[$id]['done'][$key]);
                 }
             }
         }
         $smarty->assign("T_TESTS_INFO", $testsInfo);
     }
 } catch (Exception $e) {
     handleNormalFlowExceptions($e);
 }
 /*
  *      Lesson's questions
  */
 try {
     $lessonQuestions = array_keys($infoLesson->getQuestions());
     if (sizeof($lessonQuestions) > 0) {
         $info = EfrontStats::getQuestionInfo($lessonQuestions, $infoLesson->lesson['id']);
         $questionsInfo = array();
         foreach ($info as $id => $questionInfo) {
             $questionsInfo[$id] = array('text' => $questionInfo['general']['reduced_text'], 'complete_text' => trim(strip_tags($questionInfo['general']['text'])), 'type' => $questionInfo['general']['type'], 'difficulty' => $questionInfo['general']['difficulty'], 'times_done' => $questionInfo['done']['times_done'], 'avg_score' => round($questionInfo['done']['avg_score'], 2));
         }
         $smarty->assign("T_QUESTIONS_INFORMATION", $questionsInfo);
     }
 } catch (Exception $e) {
     $smarty->assign("T_EXCEPTION_TRACE", $e->getTraceAsString());
     $message = $e->getMessage() . ' (' . $e->getCode() . ') &nbsp;<a href = "javascript:void(0)" onclick = "eF_js_showDivPopup(event, \'' . _ERRORDETAILS . '\', 2, \'error_details\')">' . _MOREINFO . '</a>';
     $message_type = 'failure';
 }
 /*
  *      Lesson's projects
  */
 try {