From: jerome Date: Mon, 14 Sep 2009 03:53:08 +0000 (+0000) Subject: webservice MDL-12886 update user core function => remove commit_sql / rollback call X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8cbe45709ba82f909a6762eaca15fba683dc914c;p=moodle.git webservice MDL-12886 update user core function => remove commit_sql / rollback call --- diff --git a/user/lib.php b/user/lib.php index ce9e9908af..df34ec04a4 100644 --- a/user/lib.php +++ b/user/lib.php @@ -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; } }