Skip to content
Browse files

MDL-40436: auth_ldap: Fixed warning when adding new LDAP users

  • Loading branch information...
1 parent ca4077c commit 6fe662302c1f504eb2d8d2faf2cb0c4906e20c9a @tlock tlock committed with damyon Jun 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/ldap/auth.php
View
2 auth/ldap/auth.php
@@ -914,7 +914,7 @@ function sync_users($do_updates=true) {
$id = $DB->insert_record('user', $user);
echo "\t"; print_string('auth_dbinsertuser', 'auth_db', array('name'=>$user->username, 'id'=>$id)); echo "\n";
- $euser = $DB->get_record('user', array('id' => $user->id));
+ $euser = $DB->get_record('user', array('id' => $id));
events_trigger('user_created', $euser);
if (!empty($this->config->forcechangepassword)) {
set_user_preference('auth_forcepasswordchange', 1, $id);

0 comments on commit 6fe6623

Please sign in to comment.
Something went wrong with that request. Please try again.