Remove error log

pull/2487/head
jmontoyaa 9 years ago
parent 12f7921a62
commit d2f6ad1317
  1. 15
      main/exercise/hotspot_answers.as.php

@ -57,8 +57,6 @@ $data['image_height'] = $pictureHeight;
$data['courseCode'] = $_course['path'];
$data['hotspots'] = [];
error_log("\$objExercise->results_disabled: {$objExercise->results_disabled}");
$showScoreOptions = [
RESULT_DISABLE_SHOW_SCORE_ONLY,
RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES,
@ -89,13 +87,13 @@ if ($showExpectedChoice) {
->getQuery()
->getResult();
/** @var CQuizAnswer $hotspotAnswer */
foreach ($result as $hotspotAnswer) {
/** @var CQuizAnswer $hotSpotAnswer */
foreach ($result as $hotSpotAnswer) {
$hotSpot = [];
$hotSpot['id'] = $hotspotAnswer->getIid();
$hotSpot['answer'] = $hotspotAnswer->getAnswer();
$hotSpot['id'] = $hotSpotAnswer->getIid();
$hotSpot['answer'] = $hotSpotAnswer->getAnswer();
switch ($hotspotAnswer->getHotspotType()) {
switch ($hotSpotAnswer->getHotspotType()) {
case 'square':
$hotSpot['type'] = 'square';
break;
@ -113,8 +111,7 @@ if ($showExpectedChoice) {
break;
}
$hotSpot['coord'] = $hotspotAnswer->getHotspotCoordinates();
$hotSpot['coord'] = $hotSpotAnswer->getHotspotCoordinates();
$data['hotspots'][] = $hotSpot;
}
}

Loading…
Cancel
Save