mirror of
https://github.com/moodle/moodle.git
synced 2025-04-19 15:32:32 +02:00
MDL-15257
Fix notice caused by (possibly) uninitialised variable. Merged from STABLE_19
This commit is contained in:
parent
0fd8bc0044
commit
6f96466d37
@ -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…
x
Reference in New Issue
Block a user