summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/controllers/AuthController.php2
-rw-r--r--application/controllers/PersonController.php4
2 files changed, 2 insertions, 4 deletions
diff --git a/application/controllers/AuthController.php b/application/controllers/AuthController.php
index 8709cbe..01ba6f4 100644
--- a/application/controllers/AuthController.php
+++ b/application/controllers/AuthController.php
@@ -12,7 +12,6 @@
class AuthController extends Zend_Controller_Action
{
- private $db = null;
protected $config;
protected $pbs2host;
@@ -21,7 +20,6 @@ class AuthController extends Zend_Controller_Action
$bootstrap = $this->getInvokeArg('bootstrap');
$this->config = $bootstrap->getOptions();
$this->pbs2host = $this->config['pbs2']['host'];
- $this->db = Zend_Db_Table::getDefaultAdapter();
}
public function indexAction()
diff --git a/application/controllers/PersonController.php b/application/controllers/PersonController.php
index 47cb674..e85e053 100644
--- a/application/controllers/PersonController.php
+++ b/application/controllers/PersonController.php
@@ -22,11 +22,11 @@ class PersonController extends Zend_Controller_Action
{
if (Zend_Auth::getInstance()->hasIdentity()) {
$this->userIDsNamespace = Zend_Session::namespaceGet('userIDs');
- $membershipID = $this->userIDsNamespace['membershipID'];
- if(!isset($membershipID)) {
+ if(!$this->userIDsNamespace['membershipID']) {
$this->_helper->redirector('selectmembership', 'person');
return;
}
+ $membershipID = $this->userIDsNamespace['membershipID'];
$this->currentMembership = new Application_Model_Membership();
$this->membershipMapper = new Application_Model_MembershipMapper();
$this->membershipMapper->find($membershipID, $this->currentMembership);