MDL-53655 tool_lp: Allow closures in default values of persistents
[moodle.git] / admin / tool / lp / classes / course_competency_settings.php
index 32f25b2..7299020 100644 (file)
@@ -51,7 +51,9 @@ class course_competency_settings extends persistent {
             ),
             'pushratingstouserplans' => array(
                 'type' => PARAM_BOOL,
-                'default' => get_config('tool_lp', 'pushcourseratingstouserplans')
+                'default' => function() {
+                    return get_config('tool_lp', 'pushcourseratingstouserplans');
+                }
             ),
         );
     }