Merge branch 'MDL-67773-master' of https://github.com/radzisze/moodle

This commit is contained in:
Adrian Greeve
2020-06-05 11:47:42 +08:00
+1 -1
View File
@@ -2472,7 +2472,7 @@ function update_course($data, $editoroptions = NULL) {
// The summary might be very long, we don't wan't to fill up the log record with the full text.
$updatedfields[$field] = '(updated)';
}
} else if ($field == 'tags' && !empty($CFG->usetags)) {
} else if ($field == 'tags' && isset($data->tags)) {
// Tags might not have the same array keys, just check the values.
if (array_values($data->$field) !== array_values($value)) {
$updatedfields[$field] = $data->$field;