summaryrefslogtreecommitdiffstats
path: root/application/modules/fbgui/controllers/IndexController.php
diff options
context:
space:
mode:
Diffstat (limited to 'application/modules/fbgui/controllers/IndexController.php')
-rw-r--r--application/modules/fbgui/controllers/IndexController.php9
1 files changed, 4 insertions, 5 deletions
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();