Skip to content

Commit

Permalink
MDL-14620 - need to check vars are set before using. - adding check s…
Browse files Browse the repository at this point in the history
…o I can include this form type in SCORM
  • Loading branch information
danmarsden committed Aug 20, 2008
1 parent 8ba1908 commit 24f40ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/form/choosecoursefileorimsrepo.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ function _createElements() {
$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;
Expand Down

0 comments on commit 24f40ab

Please sign in to comment.