diff options
Diffstat (limited to 'application/modules/dev/controllers/PersonController.php')
-rw-r--r-- | application/modules/dev/controllers/PersonController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/dev/controllers/PersonController.php b/application/modules/dev/controllers/PersonController.php index 40e51af..a403038 100644 --- a/application/modules/dev/controllers/PersonController.php +++ b/application/modules/dev/controllers/PersonController.php @@ -13,7 +13,7 @@ class dev_PersonController extends Zend_Controller_Action public function init() { if (Zend_Auth::getInstance()->hasIdentity()) { $this->personmapper = new Application_Model_PersonMapper(); - $result = $this->personmapper->findBy('email', Zend_Auth::getInstance()->getIdentity()); + $result = $this->personmapper->findBy(array('email' => Zend_Auth::getInstance()->getIdentity()),true); $this->person = new Application_Model_Person($result[0]); $this->person->setID($result[0]['personID']); $this->groupMapper = new Application_Model_GroupMapper(); @@ -85,7 +85,7 @@ class dev_PersonController extends Zend_Controller_Action { $this->view->person = $this->person; $allgroups = $this->groupMapper->fetchAll(); - $groupRequests = $this->groupRequestMapper->findBy('personID', $this->person->getID()); + $groupRequests = $this->groupRequestMapper->findBy(array('personID' => $this->person->getID()),true); $count = 0; foreach($allgroups as $group) { foreach($groupRequests as $groupRequest) { |