diff --git a/course/category.php b/course/category.php index 13401db51c7..80c7a99c546 100644 --- a/course/category.php +++ b/course/category.php @@ -89,7 +89,7 @@ /// Move a specified course to a new category - if ($data = data_submitted()) { // Some courses are being moved + if (isset($moveto) and $data = data_submitted()) { // Some courses are being moved if (! $destcategory = get_record("course_categories", "id", $data->moveto)) { error("Error finding the category");