diff options
author | Michael Neves | 2012-01-26 20:34:00 +0100 |
---|---|---|
committer | Michael Neves | 2012-01-26 20:34:00 +0100 |
commit | a7695000ab0da136a573009a8fdafa27699801d8 (patch) | |
tree | 6990014d1b018e663ce1da77667e40ebac22bdf0 | |
parent | Bootiso download fix (diff) | |
download | pbs2-a7695000ab0da136a573009a8fdafa27699801d8.tar.gz pbs2-a7695000ab0da136a573009a8fdafa27699801d8.tar.xz pbs2-a7695000ab0da136a573009a8fdafa27699801d8.zip |
Bootiso download fix
-rw-r--r-- | application/modules/user/controllers/BootisoController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application/modules/user/controllers/BootisoController.php b/application/modules/user/controllers/BootisoController.php index 8d037e8..bd6793c 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(!empty($prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID())))){ + if(count($prebootMapper->findBy(array('serialnumber' => $bootiso->getSerialnumber(), 'preboottypeID' => $bootiso->getPreboottypeID()))) != 0){ $this->view->download[$bootiso->getID()] = true; } if($bootiso->getExpires() == "") { |