diff options
Diffstat (limited to 'application/modules/fbgui/controllers/PersonController.php')
| -rw-r--r-- | application/modules/fbgui/controllers/PersonController.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application/modules/fbgui/controllers/PersonController.php b/application/modules/fbgui/controllers/PersonController.php index 06076c5..1c3a4d7 100644 --- a/application/modules/fbgui/controllers/PersonController.php +++ b/application/modules/fbgui/controllers/PersonController.php @@ -11,11 +11,11 @@ class Fbgui_PersonController extends Zend_Controller_Action { 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->membershipMapper = new Application_Model_MembershipMapper(); - $this->memberships = $this->membershipMapper->findBy("personID",$this->person->getID()); + $this->memberships = $this->membershipMapper->findBy(array("personID" => $this->person->getID()),true); } else { $this->_helper->redirector('login', 'auth'); } |
