diff --git a/lib/form/url.php b/lib/form/url.php index 546babc2b76..c114298e31a 100644 --- a/lib/form/url.php +++ b/lib/form/url.php @@ -185,7 +185,7 @@ EOD; public function export_for_template(renderer_base $output) { $context = $this->export_for_template_base($output); - $context['filepickerhtml'] = $this->getFilePickerHTML(); + $context['filepickerhtml'] = !empty($this->_options['usefilepicker']) ? $this->getFilePickerHTML() : ''; return $context; }