MDL-14620 - need to check vars are set before using. - adding check so I can include this form type in SCORM - merged from HEAD

This commit is contained in:
danmarsden
2008-08-20 22:01:06 +00:00
parent 240363ac49
commit 4bf780bf99
+1 -1
View File
@@ -90,7 +90,7 @@ class MoodleQuickForm_choosecoursefileorimsrepo extends MoodleQuickForm_group
$button->updateAttributes($buttonattributes);
/// With repository active, show the button to browse it
if ($CFG->repositoryactivate) {
if (isset($CFG->repositoryactivate) && $CFG->repositoryactivate) {
$this->_elements[2] =& MoodleQuickForm::createElement('button', 'imsrepo', get_string('browserepository', 'resource'));
$imsbutton =& $this->_elements[2];
$url = "/mod/resource/type/ims/finder.php?directory=&choose=".$choose;