Changeset 25018 for trunk/profile.php
- Timestamp:
- Oct 19, 2013, 7:43:04 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/profile.php
r20609 r25018 202 202 if (!empty($_POST['use_new_pwd'])) 203 203 { 204 array_push($fields, $conf['user_fields']['password']);204 $fields[] = $conf['user_fields']['password']; 205 205 // password is hashed with function $conf['password_hash'] 206 206 $data{$conf['user_fields']['password']} = $conf['password_hash']($_POST['use_new_pwd']); … … 212 212 if ($_POST['username'] != $userdata['username'] and get_userid($_POST['username'])) 213 213 { 214 array_push($page['errors'], l10n('this login is already used'));214 $page['errors'][] = l10n('this login is already used'); 215 215 unset($_POST['redirect']); 216 216 } 217 217 else 218 218 { 219 array_push($fields, $conf['user_fields']['username']);219 $fields[] = $conf['user_fields']['username']; 220 220 $data{$conf['user_fields']['username']} = $_POST['username']; 221 221 … … 263 263 if ($conf['activate_comments']) 264 264 { 265 array_push($fields, 'show_nb_comments');265 $fields[] = 'show_nb_comments'; 266 266 } 267 267
Note: See TracChangeset
for help on using the changeset viewer.