MDL-34198 SCORM remove unecessary get_records call

This commit is contained in:
Dan Marsden
2012-07-06 09:53:59 +12:00
parent d71b79a406
commit c24bdac7dd
-1
View File
@@ -183,7 +183,6 @@ class scorm_interactions_report extends scorm_default_report {
$countsql .= 'COUNT(DISTINCT('.$DB->sql_concat('u.id', '\'#\'', 'st.attempt').')) AS nbattempts, ';
$countsql .= 'COUNT(DISTINCT(u.id)) AS nbusers ';
$countsql .= $from.$where;
$attempts = $DB->get_records_sql($select.$from.$where, $params);
$questioncount = get_scorm_question_count($scorm->id);
for($id = 0; $id < $questioncount; $id++) {
if ($displayoptions['qtext']) {