Skip to content

Commit

Permalink
MDL-15402: do not display type form if there is no option to set
Browse files Browse the repository at this point in the history
  • Loading branch information
jerome committed Sep 19, 2008
1 parent ea16a91 commit ce2066a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions admin/repository.php
Expand Up @@ -91,9 +91,12 @@
} else {
admin_externalpage_print_header();
print_heading(get_string('configplugin', 'repository_'.$plugin));
print_simple_box_start();
$mform->display();
print_simple_box_end();
$typeoptionnames = repository_static_function($edit, 'get_type_option_names');
if (!empty($typeoptionnames)){
print_simple_box_start();
$mform->display();
print_simple_box_end();
}
$return = false;

//display instances list and creation form
Expand Down

0 comments on commit ce2066a

Please sign in to comment.