webservice MDL-12886 update user core function => remove commit_sql / rollback call
This commit is contained in:
+1
-2
@@ -158,11 +158,10 @@ function update_user($user) {
|
||||
}
|
||||
|
||||
if ($DB->update_record('user', $user)) {
|
||||
$DB->commit_sql();
|
||||
//TODO check the php warning that this line produce
|
||||
events_trigger('user_updated', $user);
|
||||
return true;
|
||||
} else {
|
||||
$DB->rollback_sql();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user