From 51009e4977d2f68fb45ccca37bee1e946f5bf6ee Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Thu, 26 Jan 2012 20:52:34 +0100 Subject: Bootiso download fix --- application/modules/user/controllers/BootisoController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php index 44a495f..7b2a1e0 100644 --- a/application/modules/user/controllers/BootisoController.php +++ b/application/modules/user/controllers/BootisoController.php @@ -94,15 +94,14 @@ class user_BootisoController extends Zend_Controller_Action { foreach ($this->view->bootisolist as $bootiso) { $bootiso->setGroupID("[".$bootiso->getGroupID()."] ".$groupMapper->find($bootiso->getGroupID())->getTitle()); - $bootiso->setPreBootTypeID($preboottypeMapper->find($bootiso->getPreBootTypeID())->getName()); $bootiso->setCreated(date(Zend_Registry::get('dateformat'), $bootiso->getCreated())); $preboots = $prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID())); if(count($preboots) != 0){ $this->view->download[$bootiso->getID()] = true; } + $bootiso->setPreBootTypeID($preboottypeMapper->find($bootiso->getPreBootTypeID())->getName()); - print_a($this->view->bootisolist); - + if($bootiso->getExpires() == "") { $bootiso->setExpires(0); } -- cgit v1.2.3-55-g7522