summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui
diff options
context:
space:
mode:
authorSimon2011-04-19 14:34:10 +0200
committerSimon2011-04-19 14:34:10 +0200
commite205bff25c5716ce1788d39a0803fa439928ff3c (patch)
tree52b2f64152099f1bbb0f7e4e11dca76cd3ea8044 /application/modules/fbgui
parentFilterMöglichkeit umbenannt (diff)
downloadpbs2-e205bff25c5716ce1788d39a0803fa439928ff3c.tar.gz
pbs2-e205bff25c5716ce1788d39a0803fa439928ff3c.tar.xz
pbs2-e205bff25c5716ce1788d39a0803fa439928ff3c.zip
Notices und Warnings weggemacht
Diffstat (limited to 'application/modules/fbgui')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php
index fb8282a..d537e0b 100644
--- a/application/modules/fbgui/controllers/IndexController.php
+++ b/application/modules/fbgui/controllers/IndexController.php
@@ -17,6 +17,8 @@ class Fbgui_IndexController extends Zend_Controller_Action
public function init()
{
/* Initialize action controller here */
+ $userIDsNamespace = Zend_Session::namespaceGet('userIDs');
+
$membershipMapper = new Application_Model_MembershipMapper();
$this->membership = new Application_Model_Membership();
$membershipMapper->find($userIDsNamespace['membershipID'],$this->membership);
@@ -84,13 +86,14 @@ class Fbgui_IndexController extends Zend_Controller_Action
$_SESSION['alphasessionID'] = $session->getAlphasessionID();
}
else{
+ print_a('session wiedergefunden');
$session = new Application_Model_Session();
$sessionMapper = new Application_Model_SessionMapper();
$sessions = $sessionMapper->findBy(array('alphasessionID'=>$_SESSION['alphasessionID']));
$session = $sessions[0];
if($this->membership->getID() != ''){
$session->setMembershipID($this->membership->getID());
- $session->save();
+ $sessionMapper->save($session);
}
}
// Request Bootmenu