Permalink
Browse files

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

  • Loading branch information...
1 parent 92cfad9 commit b719bf20b4f62a171db0d75a6d3dc3ded970670b @tlock tlock committed with damyon Jun 27, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 auth/ldap/auth.php
View
@@ -880,7 +880,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 b719bf2

Please sign in to comment.