"MDL-23326, fixed undefined index"

This commit is contained in:
Dongsheng Cai 2010-08-09 06:26:14 +00:00
parent 9f76d281af
commit 5513379ae6

View File

@ -163,6 +163,7 @@ class repository_filesystem extends repository {
}
if (empty($choices)) {
$mform->addElement('static', '', '', get_string('nosubdir', 'repository_filesystem', $path));
$mform->addElement('hidden', 'fs_path', $fieldname, '');
} else {
$mform->addElement('select', 'fs_path', $fieldname, $choices);
$mform->addElement('static', null, '', get_string('information','repository_filesystem', $path));