Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge branch 'MDL-39365-m24' of git://github.com/ankitagarwal/moodle …

…into MOODLE_24_STABLE
  • Loading branch information...
commit 7e1c6bf8b46242997e48c882a7ab27b34230da93 2 parents 38fdbcf + d9ea44e
Sam Hemelryk samhemelryk authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 mod/scorm/report/reportlib.php
4 mod/scorm/report/reportlib.php
@@ -69,14 +69,14 @@ function get_scorm_question_count($scormid) {
69 69 $rs = $DB->get_recordset_select("scorm_scoes_track", $select, $params, 'element');
70 70 $keywords = array("cmi.interactions_", ".id");
71 71 if ($rs->valid()) {
72   - // Done as interactions start at 0 (do only if we have something to report).
73   - $count++;
74 72 foreach ($rs as $record) {
75 73 $num = trim(str_ireplace($keywords, '', $record->element));
76 74 if (is_numeric($num) && $num > $count) {
77 75 $count = $num;
78 76 }
79 77 }
  78 + // Done as interactions start at 0 (do only if we have something to report).
  79 + $count++;
80 80 }
81 81 $rs->close(); // closing recordset
82 82 return $count;

0 comments on commit 7e1c6bf

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