equal
deleted
inserted
replaced
145 if ( $user_id != $session->user_id ) |
145 if ( $user_id != $session->user_id ) |
146 { |
146 { |
147 $to_update_users['username'] = $username; |
147 $to_update_users['username'] = $username; |
148 if ( $password ) |
148 if ( $password ) |
149 { |
149 { |
150 $password = $aes->encrypt($password, $session->private_key, ENC_HEX); |
150 $password = $session->pk_encrypt($password, ENC_HEX); |
151 $to_update_users['password'] = $password; |
151 $to_update_users['password'] = $password; |
152 } |
152 } |
153 $to_update_users['email'] = $email; |
153 $to_update_users['email'] = $email; |
154 $to_update_users['real_name'] = $real_name; |
154 $to_update_users['real_name'] = $real_name; |
155 } |
155 } |