]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-18318 fixed incorrect function param - thanks Aurelijus
authorskodak <skodak>
Thu, 19 Feb 2009 16:21:46 +0000 (16:21 +0000)
committerskodak <skodak>
Thu, 19 Feb 2009 16:21:46 +0000 (16:21 +0000)
lib/moodlelib.php

index 5bb9d89a3ca738c447546812b3142b3da80e139c..97a04706b6d76970c34936cdbde57dc6d583d4dc 100644 (file)
@@ -2907,7 +2907,7 @@ function update_user_record($username, $authplugin) {
                 // nothing_ for this field. Thus it makes sense to let this value
                 // stand in until LDAP is giving a value for this field.
                 if (!(empty($value) && $lockval === 'unlockedifempty')) {
-                    $DB->set_field('user', $key, $value, 'username', $username);
+                    $DB->set_field('user', $key, $value, array('username'=>$username));
                 }
             }
         }