Commit afe3e75c authored by Andrew Robert Nicols's avatar Andrew Robert Nicols Committed by Richard Mansfield
Browse files

Fix enabling of email on account settings page at admin level

I'd made a call to $user->get when $user is a StdClass object.
Corrected to use $user->email and $user->id
parent cfc69466
......@@ -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->email;
$u->id = $user->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