Commit b6c4f0ef authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Enable/disable mail for the correct user

Signed-off-by: default avatarRichard Mansfield <>
parent b403d53f
......@@ -189,8 +189,8 @@ function edituser_site_submit(Pieform $form, $values) {
// Reset the sent and bounce counts otherwise mail will be disabled
// on the next send attempt
$u = new StdClass;
$u->email = $USER->get('email');
$u->id = $USER->get('id');
$u->email = $user->get('email');
$u->id = $user->get('id');
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment