mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-15257
Fix notice caused by (possibly) uninitialised variable. Merged from STABLE_19
This commit is contained in:
parent
0fd8bc0044
commit
6f96466d37
1 changed files with 1 additions and 1 deletions
|
@ -641,7 +641,7 @@ define('RESTORE_GROUPS_GROUPINGS', 3);
|
|||
|
||||
// else we try to get it from the xml file
|
||||
//Now calculate the category
|
||||
if (!$category) {
|
||||
if (empty($category)) {
|
||||
$category = $DB->get_record("course_categories",array("id"=>$course_header->category->id,
|
||||
"name"=>$course_header->category->name));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue