mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-39462 course: Fix typo in $changesinccoursecat
This commit is contained in:
parent
1922147ebf
commit
b55248d5ad
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user