From 34cd22860d54e93b4c5799a1958019eb7e5e0274 Mon Sep 17 00:00:00 2001 From: Anthony Radziszewski Date: Fri, 24 Jan 2020 12:19:22 -0700 Subject: [PATCH] MDL-67773 course: Make sure tags are enabled before logging the setting. --- course/lib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/lib.php b/course/lib.php index e67aa7a6bb5..98703cc2d78 100644 --- a/course/lib.php +++ b/course/lib.php @@ -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;