mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
Robustness fixes
This commit is contained in:
parent
bdece65d72
commit
149f85f035
2 changed files with 18 additions and 15 deletions
|
@ -76,7 +76,7 @@
|
|||
|
||||
/// Otherwise fill and print the form.
|
||||
|
||||
if (!$form) {
|
||||
if (empty($form)) {
|
||||
if ($course) {
|
||||
$form = $course;
|
||||
} else {
|
||||
|
@ -96,6 +96,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
if (empty($focus)) {
|
||||
$focus = "";
|
||||
}
|
||||
|
||||
$form->categories = get_records_select_menu("course_categories", "", "name", "id,name");
|
||||
|
||||
$form->courseformats = array (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue