summaryrefslogtreecommitdiffstats
path: root/application/controllers
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-04 16:57:05 +0200
committerBjörn Geiger2011-08-04 16:57:05 +0200
commit886193643916e9a4dbc73c9beeee5bd1a9c25e47 (patch)
tree25921555a1e60c23657aefe878b40d80599aa8fc /application/controllers
parentDatenbank Fehler korrigiert (diff)
downloadpoolctrl-886193643916e9a4dbc73c9beeee5bd1a9c25e47.tar.gz
poolctrl-886193643916e9a4dbc73c9beeee5bd1a9c25e47.tar.xz
poolctrl-886193643916e9a4dbc73c9beeee5bd1a9c25e47.zip
minor
Diffstat (limited to 'application/controllers')
-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);