From: thepurpleblob Date: Mon, 16 Jun 2008 10:08:30 +0000 (+0000) Subject: MDL-15257 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6f96466d3760e0006a225edbad3dbd47768cb702;p=moodle.git MDL-15257 Fix notice caused by (possibly) uninitialised variable. Merged from STABLE_19 --- diff --git a/backup/restorelib.php b/backup/restorelib.php index f3543c5c46..af3e7d644f 100644 --- a/backup/restorelib.php +++ b/backup/restorelib.php @@ -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)); }