Skip to content
Snippets Groups Projects
Commit 5cea8f9d authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

really update broken user config values, re #328

parent 7a8e148b
No related branches found
No related tags found
No related merge requests found
...@@ -22,7 +22,7 @@ final class FixMyCoursesGroupConfig extends Migration ...@@ -22,7 +22,7 @@ final class FixMyCoursesGroupConfig extends Migration
} }
} }
if ($changed) { if ($value->value[0] === '{' || $changed) {
$value->value = json_encode(array_values($groups)); $value->value = json_encode(array_values($groups));
$value->store(); $value->store();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment