Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove another unnecessary assignment to `$_POST['id']`

which escaped from my previous commit.
  • Loading branch information...
commit 5f9fff85bc2f191c0b911bf317a50dfa6e18ccaa 1 parent a7be4a4
@sourcejedi sourcejedi authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 bonfire/modules/users/controllers/users.php
View
4 bonfire/modules/users/controllers/users.php
@@ -649,10 +649,8 @@ private function save_user($id=0, $meta_fields=array())
$id = $this->current_user->id; /* ( $this->input->post('id') > 0 ) ? $this->input->post('id') : */
}
- $_POST['id'] = $id;
-
// Simple check to make the posted id is equal to the current user's id, minor security check
- if ( $_POST['id'] != $this->current_user->id )
+ if ( $id != $this->current_user->id )
{
$this->form_validation->set_message('email', 'lang:us_invalid_userid');
return FALSE;
Please sign in to comment.
Something went wrong with that request. Please try again.