From 006323e40d47cc992009dee1a530f5d01fec5548 Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 27 Aug 2018 08:22:04 +0200 Subject: [PATCH] Minor - fix php warning --- main/exercise/hotspot_answers.as.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/main/exercise/hotspot_answers.as.php b/main/exercise/hotspot_answers.as.php index 7d91ede9bc..2539c1ebe1 100755 --- a/main/exercise/hotspot_answers.as.php +++ b/main/exercise/hotspot_answers.as.php @@ -96,13 +96,15 @@ if ($objExercise->selectResultsDisabled() == RESULT_DISABLE_SHOW_SCORE_ATTEMPT_S $showOnlyScore = true; $showResults = true; if ($objExercise->attempts > 0) { + $lpId = $trackExerciseInfo['orig_lp_id'] ?? 0; + $lpItemId = $trackExerciseInfo['orig_lp_item_id'] ?? 0; $attempts = Event::getExerciseResultsByUser( api_get_user_id(), $objExercise->id, $courseId, api_get_session_id(), - $trackExerciseInfo['orig_lp_id'], - $trackExerciseInfo['orig_lp_item_id'], + $lpId, + $lpItemId, 'desc' ); $numberAttempts = count($attempts);