aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-18 14:06:34 -0800
committerfriendica <info@friendica.com>2013-11-18 14:06:34 -0800
commitfce5f2042db1a9d0b13c3bd5f6d37980fa98ca7f (patch)
tree05275a75a4b8e72275ab3334a4564acc5767cf80 /mod
parentb1a4dc7d7ed9ae19c7f8c0cb1d706eb57872ff28 (diff)
downloadvolse-hubzilla-fce5f2042db1a9d0b13c3bd5f6d37980fa98ca7f.tar.gz
volse-hubzilla-fce5f2042db1a9d0b13c3bd5f6d37980fa98ca7f.tar.bz2
volse-hubzilla-fce5f2042db1a9d0b13c3bd5f6d37980fa98ca7f.zip
resetting password tries to update email address even if it didn't change - and if you've got the admin email this spits out a warning.
Diffstat (limited to 'mod')
-rw-r--r--mod/settings.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/settings.php b/mod/settings.php
index 4e122607b..ba7540b91 100644
--- a/mod/settings.php
+++ b/mod/settings.php
@@ -319,8 +319,8 @@ function settings_post(&$a) {
}
$email = ((x($_POST,'email')) ? trim(notags($_POST['email'])) : '');
+ $account = $a->get_account();
if($email != $account['account_email']) {
- $account = $a->get_account();
if(! valid_email($email))
$errs[] = t('Not valid email.');
$adm = trim(get_config('system','admin_email'));