From ffbb1a21c39bcb80c5f2a383699192962e01298f 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 fa7c2c51544..dbc03327276 100644 --- a/auth/ldap/auth.php +++ b/auth/ldap/auth.php @@ -854,7 +854,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); -- 2.43.0