]> git.mjollnir.org Git - moodle.git/commitdiff
webservice MDL-12886 update user core function => remove commit_sql / rollback call
authorjerome <jerome>
Mon, 14 Sep 2009 03:53:08 +0000 (03:53 +0000)
committerjerome <jerome>
Mon, 14 Sep 2009 03:53:08 +0000 (03:53 +0000)
user/lib.php

index ce9e9908af2ee26d15d3ef7aa1adefd912ca284c..df34ec04a4fcb2ba13834f3bb6626a1b6775bd70 100644 (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;
     }
 }