]> git.mjollnir.org Git - moodle.git/commitdiff
Bugfix when renaming
authormoodler <moodler>
Mon, 11 Aug 2003 02:07:17 +0000 (02:07 +0000)
committermoodler <moodler>
Mon, 11 Aug 2003 02:07:17 +0000 (02:07 +0000)
course/category.php

index 13401db51c76706cb75f6d39cded8a0b89f411ae..80c7a99c546e8aa24b534560366799bac9118885 100644 (file)
@@ -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");