Merge branch 'm20_MDL-25794_sections_typo' of git://github.com/danmarsden/moodle

This commit is contained in:
Eloy Lafuente (stronk7) 2011-01-10 21:22:02 +01:00
commit a3c896ae4d

View File

@ -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);
}