diff options
| author | Simon | 2011-04-26 21:19:35 +0200 |
|---|---|---|
| committer | Simon | 2011-04-26 21:19:35 +0200 |
| commit | 81a43570c9139ef90e296fd91a7c005281cc6563 (patch) | |
| tree | e609b106666ae68cfb95ff0545cac9d63d79711d /application/modules | |
| parent | BugFix Person... (diff) | |
| download | pbs2-81a43570c9139ef90e296fd91a7c005281cc6563.tar.gz pbs2-81a43570c9139ef90e296fd91a7c005281cc6563.tar.xz pbs2-81a43570c9139ef90e296fd91a7c005281cc6563.zip | |
BugFix Person...
Diffstat (limited to 'application/modules')
| -rw-r--r-- | application/modules/user/controllers/PersonController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/application/modules/user/controllers/PersonController.php b/application/modules/user/controllers/PersonController.php index 64d03ae..e13e2bf 100644 --- a/application/modules/user/controllers/PersonController.php +++ b/application/modules/user/controllers/PersonController.php @@ -169,7 +169,7 @@ class user_PersonController extends Zend_Controller_Action $this->_redirect('/user'); } $requestedUser = $this->_request->getParam('personID'); - if($requestedUser != "" && $this->person->getID() != $this->_request->getParam('personID')) { + if($requestedUser != "" && $this->person->getID() != $requestedUser) { if(!is_numeric($requestedUser)){ $this->_redirect('/user/person/index/page/'.$this->page.'/modifyresult/error'); } @@ -186,9 +186,10 @@ class user_PersonController extends Zend_Controller_Action } else { $editForm = new user_Form_PersonEdit($_POST); if ($editForm->isValid($_POST)) { - if($this->person->getID() == $this->_request->getParam('personID')) { + if($this->person->getID() == $requestedUser) { $person->setOptions($_POST); + $this->person->setID($this->view->person->getID()); if($_POST['newpassword'] != '') { $person->setPassword($_POST['newpassword']); $person->setPasswordSalt(MD5(microtime(true))); @@ -207,6 +208,7 @@ class user_PersonController extends Zend_Controller_Action $this->_helper->redirector('', 'person'); } else { $this->person->setOptions($_POST); + $this->person->setID($this->view->person->getID()); if($_POST['newpassword'] != '') { $this->person->setPassword($_POST['newpassword']); $this->person->setPasswordSalt(MD5(microtime(true))); |
