MDL-34198 SCORM remove unecessary get_records call
authorDan Marsden <dan@danmarsden.com>
Thu, 5 Jul 2012 21:53:59 +0000 (09:53 +1200)
committerDan Poltawski <dan@moodle.com>
Tue, 10 Jul 2012 00:34:42 +0000 (08:34 +0800)
mod/scorm/report/interactions/report.php

index d9152d1..b251127 100644 (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);
             $nbmaincolumns = count($columns);
             for($id = 0; $id < $questioncount; $id++) {