From 1ca4c8d26c9a0c70d29f6a9a9c9ad2c305f036b9 Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 28 Mar 2011 11:37:40 +0200 Subject: Filter anders gelöst, fbgui startbutton geändert --- application/modules/fbgui/controllers/IndexController.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'application/modules/fbgui/controllers/IndexController.php') diff --git a/application/modules/fbgui/controllers/IndexController.php b/application/modules/fbgui/controllers/IndexController.php index 91d045d..c66a3f5 100644 --- a/application/modules/fbgui/controllers/IndexController.php +++ b/application/modules/fbgui/controllers/IndexController.php @@ -11,10 +11,8 @@ class Fbgui_IndexController extends Zend_Controller_Action public function indexAction() { $params = $this->_request->getParam('postdata'); - if(isset($_SESSION['postdata'])){ $_POST = ($_SESSION['postdata']); - #unset($_SESSION['postdata']); } if(isset($_POST['bootisoID']) || isset($_POST['serialnumber'])){ @@ -27,10 +25,11 @@ class Fbgui_IndexController extends Zend_Controller_Action $bootisomapper->find($_POST['bootisoID'],$bootiso); $groupID = $bootiso->getGroupID(); } - elseif(isset($_POST['serialnumber'])){ - + elseif(isset($_POST['serialnumber'])){ $results = $bootisomapper->findBy('serialnumber',$_POST['serialnumber']); - print_a($results); + if(count($results) == 0){ + echo 'Your serialnumber is not known by the system'; + } $bootiso->setOptions($results[0]); $bootiso->setID($results[0]['bootisoID']); $groupID = $bootiso->getGroupID(); -- cgit v1.2.3-55-g7522