Skip to content

Commit

Permalink
Internal: Fix audio answers deletion in SessionManager::delete() - re…
Browse files Browse the repository at this point in the history
…fs BT#19984
  • Loading branch information
ywarnier committed Jul 8, 2022
1 parent b7af28e commit 1a3a8cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/inc/lib/sessionmanager.lib.php
Expand Up @@ -1895,9 +1895,9 @@ public static function delete($id_checked, $from_ws = false)
]
);
foreach ($attempts as $attempt) {
$attempt = new OralExpression();
$attempt->initFile($id_checked, $attempt['user_id'], 0, $attempt['exe_id'], $courseId);
$filename = $attempt->getAbsoluteFilePath(true);
$oral = new OralExpression();
$oral->initFile($id_checked, $attempt['user_id'], 0, $attempt['exe_id'], $courseId);
$filename = $oral->getAbsoluteFilePath(true);
my_delete($filename);
}
}
Expand Down

0 comments on commit 1a3a8cf

Please sign in to comment.