Skip to content

Commit

Permalink
Merge branch 'MDL-76376_m40' of https://github.com/jrchamp/moodle int…
Browse files Browse the repository at this point in the history
…o MOODLE_400_STABLE
  • Loading branch information
sarjona committed Mar 27, 2023
2 parents 307be11 + 801e7d9 commit 191ef56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/datamodels/scormlib.php
Expand Up @@ -568,7 +568,7 @@ function scorm_parse_scorm(&$scorm, $manifest) {
$scoes = scorm_get_manifest($manifests, $scoes);
$newscoes = array();
$sortorder = 0;
if (count($scoes->elements) > 0) {
if (!empty($scoes->elements) && is_iterable($scoes->elements)) {
$olditems = $DB->get_records('scorm_scoes', array('scorm' => $scorm->id));
foreach ($scoes->elements as $manifest => $organizations) {
foreach ($organizations as $organization => $items) {
Expand Down

0 comments on commit 191ef56

Please sign in to comment.