diff options
Diffstat (limited to 'application/modules/fbgui')
3 files changed, 6 insertions, 6 deletions
diff --git a/application/modules/fbgui/controllers/AuthController.php b/application/modules/fbgui/controllers/AuthController.php index 1b7b5fe..eef2156 100644 --- a/application/modules/fbgui/controllers/AuthController.php +++ b/application/modules/fbgui/controllers/AuthController.php @@ -47,7 +47,7 @@ class Fbgui_AuthController extends Zend_Controller_Action if ($result->isValid()) { $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); $person = new Application_Model_Person($result[0]); $person->setID($result[0]['personID']); $date = new DateTime(); diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index d12f343..8c840ea 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -26,7 +26,7 @@ class Fbgui_IndexController extends Zend_Controller_Action $groupID = $bootiso->getGroupID(); } elseif(isset($_POST['serialnumber'])){ - $results = $bootisomapper->findBy('serialnumber',$_POST['serialnumber'],true); + $results = $bootisomapper->findBy(array('serialnumber' => $_POST['serialnumber']),true); if(count($results) == 0){ echo 'Your serialnumber is not known by the system'; } @@ -62,7 +62,7 @@ class Fbgui_IndexController extends Zend_Controller_Action 'Your client is '.$session->getClientID(), 'goto bootmenu '.$bootmenuID); $bootmenuentriesMapper = new Application_Model_BootMenuEntriesMapper(); - $res = $bootmenuentriesMapper->findBy('bootmenuID',$bootmenuID); + $res = $bootmenuentriesMapper->findBy(array('bootmenuID' => $bootmenuID),true); $this->view->entries = $res; } else{ @@ -87,7 +87,7 @@ class Fbgui_IndexController extends Zend_Controller_Action $bootmenuentriesMapper->find($bootmenuntryID,$bootmenuentry); $sessionMapper = new Application_Model_SessionMapper(); - $session_k = $sessionMapper->findBy('alphasessionID',$_SESSION['alphasessionID']); + $session_k = $sessionMapper->findBy(array('alphasessionID' => $_SESSION['alphasessionID']),true); $session = new Application_Model_Session(); $session->setOptions($session_k[0]); 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'); } |