Skip to content

Commit 14a371d

Browse files
committed
Merge branch 'master' of github.com:chamilo/chamilo-lms
2 parents 311baef + 5ea3d09 commit 14a371d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

public/main/inc/lib/exercise.lib.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5606,12 +5606,12 @@ public static function getOralFeedbackAudio(int $attemptId, int $questionId): st
56065606
return '';
56075607
}
56085608

5609-
$html = '';
5610-
56115609
$assetRepo = Container::getAssetRepository();
5610+
$html = '';
56125611

5612+
// Keep only the latest audio feedback to avoid duplicated players
56135613
foreach ($qAttempt->getAttemptFeedbacks() as $attemptFeedback) {
5614-
$html .= Display::tag(
5614+
$html = Display::tag(
56155615
'audio',
56165616
'',
56175617
[

0 commit comments

Comments
 (0)