diff options
Diffstat (limited to 'application/modules/user/controllers/SessionController.php')
| -rw-r--r-- | application/modules/user/controllers/SessionController.php | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/application/modules/user/controllers/SessionController.php b/application/modules/user/controllers/SessionController.php index f90845a..cd0b27f 100644 --- a/application/modules/user/controllers/SessionController.php +++ b/application/modules/user/controllers/SessionController.php @@ -1,23 +1,23 @@ <?php /* * Copyright (c) 2011 - OpenSLX GmbH, RZ Uni Freiburg -* This program is free software distributed under the GPL version 2. -* See http://gpl.openslx.org/ -* -* If you have any feedback please consult http://feedback.openslx.org/ and -* send your suggestions, praise, or complaints to feedback@openslx.org -* -* General information about OpenSLX can be found at http://openslx.org/ -*/ + * This program is free software distributed under the GPL version 2. + * See http://gpl.openslx.org/ + * + * If you have any feedback please consult http://feedback.openslx.org/ and + * send your suggestions, praise, or complaints to feedback@openslx.org + * + * General information about OpenSLX can be found at http://openslx.org/ + */ class User_SessionController extends Zend_Controller_Action { private $membership; + public function init() { if (Zend_Auth::getInstance()->hasIdentity()) { $userIDsNamespace = Zend_Session::namespaceGet('userIDs'); if($userIDsNamespace['membershipID'] == '') { - $pbsNotifier = new Pbs_Notifier(); - echo $pbsNotifier->notify('No membershipID set', 'forbidden'); + echo Pbs_Notifier::notify('No membershipID set', 'forbidden'); } $membershipMapper = new Application_Model_MembershipMapper(); @@ -107,9 +107,8 @@ class User_SessionController extends Zend_Controller_Action { public function searchAction() { $this->_redirect('/user/session/index/search/'.($_GET['search'])); } - - } + function sortFunc($func_a, $func_b) { if($func_a->getID() == $func_b->getID()) { return 0; } return ($func_a->getID() < $func_b->getID()) ? 1 : -1; |
