]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-20169 reverting my incorrect patch - sorrry
authorskodak <skodak>
Mon, 31 Aug 2009 20:46:11 +0000 (20:46 +0000)
committerskodak <skodak>
Mon, 31 Aug 2009 20:46:11 +0000 (20:46 +0000)
lib/ajax/setuserpref.php

index fea4bdab9399d42606d0f814e1a23955eddc7745..28c8b52742fa20dfc33341c41adb33215ef574fe 100644 (file)
@@ -46,7 +46,7 @@ if (!isset($USER->ajax_updatable_user_prefs[$name])) {
 }
 
 // Get and the value.
-$value = required_param('value', PARAM_RAW);
+$value = required_param('value', $USER->ajax_updatable_user_prefs[$name]);
 
 // Update
 if (!set_user_preference($name, $value)) {