Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…into MOODLE_23_STABLE
  • Loading branch information...
commit b7485643987573beb72a28edf6b93445870e6800 2 parents d0fc4cf + e1aadde
Sam Hemelryk samhemelryk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 mod/scorm/report/reportlib.php
4 mod/scorm/report/reportlib.php
View
@@ -69,14 +69,14 @@ function get_scorm_question_count($scormid) {
$rs = $DB->get_recordset_select("scorm_scoes_track", $select, $params, 'element');
$keywords = array("cmi.interactions_", ".id");
if ($rs->valid()) {
- // Done as interactions start at 0 (do only if we have something to report).
- $count++;
foreach ($rs as $record) {
$num = trim(str_ireplace($keywords, '', $record->element));
if (is_numeric($num) && $num > $count) {
$count = $num;
}
}
+ // Done as interactions start at 0 (do only if we have something to report).
+ $count++;
}
$rs->close(); // closing recordset
return $count;
Please sign in to comment.
Something went wrong with that request. Please try again.