mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 18:04:43 +02:00
Merge branch 'MDL-76376' of https://github.com/jrchamp/moodle
This commit is contained in:
commit
7c2cacaaf0
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user