mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-30 13:20:03 +03:00
fixes #1313 replace curly braces by brackets
This commit is contained in:
parent
9c1f6c0c04
commit
b63ecd19bd
1 changed files with 4 additions and 4 deletions
|
@ -185,15 +185,15 @@ function save_profile_from_post($userdata, &$errors)
|
||||||
$fields = array($conf['user_fields']['email']);
|
$fields = array($conf['user_fields']['email']);
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data{$conf['user_fields']['id']} = $userdata['id'];
|
$data[ $conf['user_fields']['id'] ] = $userdata['id'];
|
||||||
$data{$conf['user_fields']['email']} = $_POST['mail_address'];
|
$data[ $conf['user_fields']['email'] ] = $_POST['mail_address'];
|
||||||
|
|
||||||
// password is updated only if filled
|
// password is updated only if filled
|
||||||
if (!empty($_POST['use_new_pwd']))
|
if (!empty($_POST['use_new_pwd']))
|
||||||
{
|
{
|
||||||
$fields[] = $conf['user_fields']['password'];
|
$fields[] = $conf['user_fields']['password'];
|
||||||
// password is hashed with function $conf['password_hash']
|
// password is hashed with function $conf['password_hash']
|
||||||
$data{$conf['user_fields']['password']} = $conf['password_hash']($_POST['use_new_pwd']);
|
$data[ $conf['user_fields']['password'] ] = $conf['password_hash']($_POST['use_new_pwd']);
|
||||||
|
|
||||||
deactivate_user_auth_keys($userdata['id']);
|
deactivate_user_auth_keys($userdata['id']);
|
||||||
}
|
}
|
||||||
|
@ -209,7 +209,7 @@ function save_profile_from_post($userdata, &$errors)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$fields[] = $conf['user_fields']['username'];
|
$fields[] = $conf['user_fields']['username'];
|
||||||
$data{$conf['user_fields']['username']} = $_POST['username'];
|
$data[ $conf['user_fields']['username'] ] = $_POST['username'];
|
||||||
|
|
||||||
// send email to the user
|
// send email to the user
|
||||||
if ($_POST['username'] != $userdata['username'])
|
if ($_POST['username'] != $userdata['username'])
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue