From c6ca00f9b31376b3fcb9917f6be0254eaa7a981f Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Thu, 24 Mar 2011 15:05:30 +0100 Subject: MembershipSelect nach Login --- application/modules/user/controllers/ClientController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'application/modules/user/controllers/ClientController.php') diff --git a/application/modules/user/controllers/ClientController.php b/application/modules/user/controllers/ClientController.php index d3d7573..30ac2f7 100644 --- a/application/modules/user/controllers/ClientController.php +++ b/application/modules/user/controllers/ClientController.php @@ -5,14 +5,15 @@ class User_ClientController extends Zend_Controller_Action private $membership; public function init() { - if($_SESSION['membershipID'] ==''){ + $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); + if($userIDsNamespace['membershipID'] ==''){ $pbsNotifier = new Pbs_Notifier(); echo $pbsNotifier->notify('No membershipID set','forbidden'); } /* Initialize action controller here */ $membershipMapper = new Application_Model_MembershipMapper(); $this->membership = new Application_Model_Membership(); - $membershipMapper->find($_SESSION['membershipID'],$this->membership); + $membershipMapper->find($userIDsNamespace['membershipID'],$this->membership); } public function indexAction() -- cgit v1.2.3-55-g7522