summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 20:38:21 +0100
committerMichael Neves2012-01-26 20:38:21 +0100
commit8be98fb0127b22dd8c0a958317b661a540f1145a (patch)
treeb4609ef260f41d10e2b870c0dc3c0ba1d71ad59d
parentBootiso download fix (diff)
downloadpbs2-8be98fb0127b22dd8c0a958317b661a540f1145a.tar.gz
pbs2-8be98fb0127b22dd8c0a958317b661a540f1145a.tar.xz
pbs2-8be98fb0127b22dd8c0a958317b661a540f1145a.zip
Bootiso download fix
-rw-r--r--application/modules/user/controllers/BootisoController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php
index bd6793c..79812b4 100644
--- a/application/modules/user/controllers/BootisoController.php
+++ b/application/modules/user/controllers/BootisoController.php
@@ -96,7 +96,8 @@ class user_BootisoController extends Zend_Controller_Action {
$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()));
- if(count($prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID()))) != 0){
+ $preboots = $prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID()));
+ if(count($preboots) != 0){
$this->view->download[$bootiso->getID()] = true;
}
if($bootiso->getExpires() == "") {