diff options
Diffstat (limited to 'application/controllers/ResourceController.php')
| -rw-r--r-- | application/controllers/ResourceController.php | 5 |
1 files changed, 3 insertions, 2 deletions
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]); |
