mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
Merge branch 'm20_MDL-25794_sections_typo' of git://github.com/danmarsden/moodle
This commit is contained in:
commit
a3c896ae4d
@ -723,13 +723,13 @@ function scorm_view_display ($user, $scorm, $action, $cm, $boxwidth='') {
|
||||
if (empty($organization)) {
|
||||
$organization = $scorm->launch;
|
||||
}
|
||||
if ($orgs = $DB->get_records_select('scorm_scoes', 'scorm = ? AND '.
|
||||
if ($orgs = $DB->get_records_select_menu('scorm_scoes', 'scorm = ? AND '.
|
||||
$DB->sql_isempty('scorm_scoes', 'launch', false, true).' AND '.
|
||||
$DB->sql_isempty('scorm_scoes', 'organization', false, false),
|
||||
array($scorm->id),'id','id,title')) {
|
||||
if (count($orgs) > 1) {
|
||||
$select = new single_select(new moodle_url($action), 'organization', $orgs, $organization, null);
|
||||
$select->lable = get_string('organizations','scorm');
|
||||
$select->label = get_string('organizations','scorm');
|
||||
$select->class = 'scorm-center';
|
||||
echo $OUTPUT->render($select);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user