Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-34198 SCORM remove unecessary get_records call

  • Loading branch information...
commit 6b8399df5e8a24b27bd805176972914c809f1e33 1 parent 68ea10b
Dan Marsden authored July 06, 2012 danpoltawski committed July 10, 2012
1  mod/scorm/report/interactions/report.php
@@ -183,7 +183,6 @@ function display($scorm, $cm, $course, $download) {
183 183
             $countsql .= 'COUNT(DISTINCT('.$DB->sql_concat('u.id', '\'#\'', 'st.attempt').')) AS nbattempts, ';
184 184
             $countsql .= 'COUNT(DISTINCT(u.id)) AS nbusers ';
185 185
             $countsql .= $from.$where;
186  
-            $attempts = $DB->get_records_sql($select.$from.$where, $params);
187 186
             $questioncount = get_scorm_question_count($scorm->id);
188 187
             $nbmaincolumns = count($columns);
189 188
             for($id = 0; $id < $questioncount; $id++) {

0 notes on commit 6b8399d

Please sign in to comment.
Something went wrong with that request. Please try again.