Skip to content
Permalink
Browse files

MDL-39462 course: Fix typo in $changesinccoursecat

  • Loading branch information...
damyon committed May 9, 2013
1 parent 1922147 commit b55248d5adaba0fabe49e968d1a45aecfd5e5da2
Showing with 2 additions and 2 deletions.
  1. +2 −2 course/lib.php
@@ -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');
}

0 comments on commit b55248d

Please sign in to comment.
You can’t perform that action at this time.