When saving profile changes your returned to Edit Account for the logged in profile

pull/734/head
Peter Goodhall 2020-12-07 13:53:01 +00:00
rodzic 305a29355e
commit 467bace222
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -269,10 +269,10 @@ class User extends CI_Controller {
// All okay, return to user screen
case OK:
if($this->session->userdata('user_id') == $this->input->post('id', true)) {
$this->session->set_flashdata('notice', 'User '.$this->input->post('user_name', true).' edited');
redirect('user/profile');
$this->session->set_flashdata('success', 'User '.$this->input->post('user_name', true).' edited');
redirect('user/edit/'.$this->uri->segment(3));
} else {
$this->session->set_flashdata('notice', 'User '.$this->input->post('user_name', true).' edited');
$this->session->set_flashdata('success', 'User '.$this->input->post('user_name', true).' edited');
redirect('user');
}
return;