From ecc70694ac0222738e2c0e95a74834508a8e29c5 Mon Sep 17 00:00:00 2001 From: Simon Date: Fri, 15 Apr 2011 12:03:30 +0200 Subject: Resources debug --- application/controllers/ResourceController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'application/controllers/ResourceController.php') diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php index c2ed55b..4db1034 100644 --- a/application/controllers/ResourceController.php +++ b/application/controllers/ResourceController.php @@ -15,8 +15,9 @@ class ResourceController extends Zend_Controller_Action $sm = new Application_Model_SessionMapper(); //TODO Error Messages if something failed - if($this->_request->getParam('alpha') != 0){ - $alphasessionID = $this->_request->getParam('alpha'); + $alpha = $this->_request->getParam('alpha'); + if($alpha != ""){ + $alphasessionID = $alpha; $result = $sm->findBy(array('alphasessionID' => $alphasessionID),true); # print_a($result); $this->thisSession = $session->setOptions($result[0]); -- cgit v1.2.3-55-g7522