|
|
|
@ -231,11 +231,10 @@ class Pref_Prefs extends Handler_Protected {
|
|
|
|
|
if ($user) {
|
|
|
|
|
$user->full_name = clean($_POST['full_name']);
|
|
|
|
|
|
|
|
|
|
if ($user->email != $new_email)
|
|
|
|
|
if ($user->email != $new_email) {
|
|
|
|
|
Logger::log(E_USER_NOTICE, "Email address of user ".$user->login." has been changed to ${new_email}.");
|
|
|
|
|
|
|
|
|
|
if ($user->email && $user->email != $new_email) {
|
|
|
|
|
|
|
|
|
|
if ($user->email) {
|
|
|
|
|
$mailer = new Mailer();
|
|
|
|
|
|
|
|
|
|
$tpl = new Templator();
|
|
|
|
@ -254,6 +253,7 @@ class Pref_Prefs extends Handler_Protected {
|
|
|
|
|
"to_address" => $user->email,
|
|
|
|
|
"subject" => "[tt-rss] Email address change notification",
|
|
|
|
|
"message" => $message]);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$user->email = $new_email;
|
|
|
|
|
}
|
|
|
|
|