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

Loading…
Cancel
Save