webservice MDL-12886 update user core function => remove commit_sql / rollback call

This commit is contained in:
jerome
2009-09-14 03:53:08 +00:00
parent 06930a7e4a
commit 8cbe45709b
+1 -2
View File
@@ -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;
}
}