Skip to content

Commit

Permalink
MDL-15257
Browse files Browse the repository at this point in the history
Fix notice caused by (possibly) uninitialised variable.
  • Loading branch information
thepurpleblob committed Jun 16, 2008
1 parent d2c3362 commit 86f9dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backup/restorelib.php
Expand Up @@ -641,7 +641,7 @@ function restore_create_new_course($restore,&$course_header) {

// else we try to get it from the xml file
//Now calculate the category
if (!$category) {
if (empty($category)) {
$category = get_record("course_categories","id",$course_header->category->id,
"name",addslashes($course_header->category->name));
}
Expand Down

0 comments on commit 86f9dc2

Please sign in to comment.