Skip to content

Commit d2f6ad1

Browse files
committed
Remove error log
1 parent 12f7921 commit d2f6ad1

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

main/exercise/hotspot_answers.as.php

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
$data['courseCode'] = $_course['path'];
5858
$data['hotspots'] = [];
5959

60-
error_log("\$objExercise->results_disabled: {$objExercise->results_disabled}");
61-
6260
$showScoreOptions = [
6361
RESULT_DISABLE_SHOW_SCORE_ONLY,
6462
RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES,
@@ -89,13 +87,13 @@
8987
->getQuery()
9088
->getResult();
9189

92-
/** @var CQuizAnswer $hotspotAnswer */
93-
foreach ($result as $hotspotAnswer) {
90+
/** @var CQuizAnswer $hotSpotAnswer */
91+
foreach ($result as $hotSpotAnswer) {
9492
$hotSpot = [];
95-
$hotSpot['id'] = $hotspotAnswer->getIid();
96-
$hotSpot['answer'] = $hotspotAnswer->getAnswer();
93+
$hotSpot['id'] = $hotSpotAnswer->getIid();
94+
$hotSpot['answer'] = $hotSpotAnswer->getAnswer();
9795

98-
switch ($hotspotAnswer->getHotspotType()) {
96+
switch ($hotSpotAnswer->getHotspotType()) {
9997
case 'square':
10098
$hotSpot['type'] = 'square';
10199
break;
@@ -113,8 +111,7 @@
113111
break;
114112
}
115113

116-
$hotSpot['coord'] = $hotspotAnswer->getHotspotCoordinates();
117-
114+
$hotSpot['coord'] = $hotSpotAnswer->getHotspotCoordinates();
118115
$data['hotspots'][] = $hotSpot;
119116
}
120117
}

0 commit comments

Comments
 (0)