Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tell insert record we don't care about inserted id

  • Loading branch information...
commit 29ad8bfe68572f9751ea362c1b31303fdc8687d3 1 parent 8b7291e
martinlanghoff authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/moodlelib.php
View
4 lib/moodlelib.php
@@ -1550,7 +1550,7 @@ function set_send_count($user,$reset=false) {
$pref->name = 'email_send_count';
$pref->value = 1;
$pref->userid = $user->id;
- insert_record('user_preferences',$pref);
+ insert_record('user_preferences',$pref, false);
}
}
@@ -1568,7 +1568,7 @@ function set_bounce_count($user,$reset=false) {
$pref->name = 'email_bounce_count';
$pref->value = 1;
$pref->userid = $user->id;
- insert_record('user_preferences',$pref);
+ insert_record('user_preferences',$pref, false);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.