From 6fe662302c1f504eb2d8d2faf2cb0c4906e20c9a Mon Sep 17 00:00:00 2001 From: Tim Lock Date: Thu, 27 Jun 2013 10:22:28 +0930 Subject: [PATCH] MDL-40436: auth_ldap: Fixed warning when adding new LDAP users --- auth/ldap/auth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auth/ldap/auth.php b/auth/ldap/auth.php index 54a987ef8cd..deda73d8190 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -914,7 +914,7 @@ class auth_plugin_ldap extends auth_plugin_base { $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);