MDL-39462 course: Fix typo in $changesinccoursecat

This commit is contained in:
Damyon Wiese 2013-05-09 14:22:26 +08:00
parent 1922147ebf
commit b55248d5ad

View File

@ -2359,7 +2359,7 @@ function update_course($data, $editoroptions = NULL) {
if ($data->visible != $oldcourse->visible) {
// reset the visibleold flag when manually hiding/unhiding course
$data->visibleold = $data->visible;
$changesinccoursecat = true;
$changesincoursecat = true;
} else {
if ($movecat) {
$newcategory = $DB->get_record('course_categories', array('id'=>$data->category));
@ -2388,7 +2388,7 @@ function update_course($data, $editoroptions = NULL) {
fix_course_sortorder();
// purge appropriate caches in case fix_course_sortorder() did not change anything
cache_helper::purge_by_event('changesincourse');
if ($changesinccoursecat) {
if ($changesincoursecat) {
cache_helper::purge_by_event('changesincoursecat');
}