MDL-15257

Fix notice caused by (possibly) uninitialised variable.

Merged from STABLE_19
This commit is contained in:
thepurpleblob 2008-06-16 10:08:30 +00:00
parent 0fd8bc0044
commit 6f96466d37

View File

@ -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));
}