From 5cea8f9d87b9d75ee955bdcad241d2372f3845a5 Mon Sep 17 00:00:00 2001
From: Elmar Ludwig <elmar.ludwig@uni-osnabrueck.de>
Date: Thu, 21 Oct 2021 11:20:20 +0200
Subject: [PATCH] really update broken user config values, re #328

---
 db/migrations/5.1.4_fix_my_courses_group_config.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/db/migrations/5.1.4_fix_my_courses_group_config.php b/db/migrations/5.1.4_fix_my_courses_group_config.php
index a7a972cb74e..bc761e99a92 100644
--- a/db/migrations/5.1.4_fix_my_courses_group_config.php
+++ b/db/migrations/5.1.4_fix_my_courses_group_config.php
@@ -22,7 +22,7 @@ final class FixMyCoursesGroupConfig extends Migration
                     }
                 }
 
-                if ($changed) {
+                if ($value->value[0] === '{' || $changed) {
                     $value->value = json_encode(array_values($groups));
                     $value->store();
                 }
-- 
GitLab