summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Neves2012-01-26 20:32:39 +0100
committerMichael Neves2012-01-26 20:32:39 +0100
commited53ab2424d553d5fc5560ddcdd221ed93688e8c (patch)
tree68406ca0cda91220783e020d510b313b7af40ef5
parentBootiso download (diff)
downloadpbs2-ed53ab2424d553d5fc5560ddcdd221ed93688e8c.tar.gz
pbs2-ed53ab2424d553d5fc5560ddcdd221ed93688e8c.tar.xz
pbs2-ed53ab2424d553d5fc5560ddcdd221ed93688e8c.zip
Bootiso download fix
-rw-r--r--application/modules/user/controllers/BootisoController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php
index 2136e5f..8d037e8 100644
--- a/application/modules/user/controllers/BootisoController.php
+++ b/application/modules/user/controllers/BootisoController.php
@@ -96,7 +96,7 @@ 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($prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID())) != null){
+ if(!empty($prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID())))){
$this->view->download[$bootiso->getID()] = true;
}
if($bootiso->getExpires() == "") {