Skip to content

Commit

Permalink
Prevent notices on user creation
Browse files Browse the repository at this point in the history
  • Loading branch information
donal72 committed Apr 29, 2007
1 parent be1aef7 commit 6172153
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user/editlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function useredit_update_bounces($user, $usernew) {
//locked field
return;
}
if ($user->email !== $usernew->email) {
if (!isset($user->email) || $user->email !== $usernew->email) {
set_bounce_count($usernew,true);
set_send_count($usernew,true);
}
Expand All @@ -48,7 +48,7 @@ function useredit_update_trackforums($user, $usernew) {
//locked field
return;
}
if (($usernew->trackforums != $user->trackforums) and !$usernew->trackforums) {
if ((!isset($user->trackforums) || ($usernew->trackforums != $user->trackforums)) and !$usernew->trackforums) {
require_once($CFG->dirroot.'/mod/forum/lib.php');
forum_tp_delete_read_records($usernew->id);
}
Expand Down

0 comments on commit 6172153

Please sign in to comment.