--- /home/fsouto/moodle/course/lib.php	2011-12-22 18:29:56.201433361 +0000
+++ course/lib.php	2011-12-27 11:44:18.124027518 +0000
@@ -3408,7 +3408,8 @@
             echo $OUTPUT->notification("Error moving courses");
             return false;
         }
-        echo $OUTPUT->notification(get_string('coursesmovedout', '', format_string($category->name)), 'notifysuccess');
+	if ($showfeedback)
+        	echo $OUTPUT->notification(get_string('coursesmovedout', '', format_string($category->name)), 'notifysuccess');
     }
 
     // move or delete cohorts in this context
@@ -3417,7 +3418,8 @@
     // now delete anything that may depend on course category context
     grade_course_category_delete($category->id, $newparentid, $showfeedback);
     if (!question_delete_course_category($category, $newparentcat, $showfeedback)) {
-        echo $OUTPUT->notification(get_string('errordeletingquestionsfromcategory', 'question', $category), 'notifysuccess');
+        if ($showfeedback)
+		echo $OUTPUT->notification(get_string('errordeletingquestionsfromcategory', 'question', $category), 'notifysuccess');
         return false;
     }
 
@@ -3426,8 +3428,9 @@
     delete_context(CONTEXT_COURSECAT, $category->id);
 
     events_trigger('course_category_deleted', $category);
-
-    echo $OUTPUT->notification(get_string('coursecategorydeleted', '', format_string($category->name)), 'notifysuccess');
+    
+    if ($showfeedback)
+    	echo $OUTPUT->notification(get_string('coursecategorydeleted', '', format_string($category->name)), 'notifysuccess');
 
     return true;
 }
