From ba45546b6c2ab231a783dfa3cb27aa62d72f5d2c Mon Sep 17 00:00:00 2001 From: Jonathan Bauer Date: Fri, 27 Apr 2012 20:19:15 +0200 Subject: minor (removes notices/warnings) --- application/modules/fbgui/controllers/IndexController.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'application') diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 4658f86..34c1f13 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -19,7 +19,9 @@ class Fbgui_IndexController extends Zend_Controller_Action { $membershipMapper = new Application_Model_MembershipMapper(); $this->membership = new Application_Model_Membership(); - $membershipMapper->find($userIDsNamespace['membershipID'], $this->membership); + if (isset($userIDsNamespace['membershipID'])) { + $membershipMapper->find($userIDsNamespace['membershipID'], $this->membership); + } } public function errorAction() { @@ -50,8 +52,8 @@ class Fbgui_IndexController extends Zend_Controller_Action { $this->view->notification[] = Pbs_Notifier::notify('You have no membership, therefore you have no own BootMenu', 'info'); } - $d = new Pbs_Debug(); - $d->debug(array('FBGuiIndexController', $_SERVER['REMOTE_ADDR'], implode("\t", $mySession->postdata))); + //$d = new Pbs_Debug(); + //$d->debug(array('FBGuiIndexController', $_SERVER['REMOTE_ADDR'], implode("\t", $mySession->postdata))); if(isset($mySession->postdata['serialnumber'])) { // Create a session -- cgit v1.2.3-55-g7522