summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
Diffstat (limited to 'application')
-rw-r--r--application/controllers/ResourceController.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/application/controllers/ResourceController.php b/application/controllers/ResourceController.php
index a60b3c9..d651f4d 100644
--- a/application/controllers/ResourceController.php
+++ b/application/controllers/ResourceController.php
@@ -138,9 +138,8 @@ class ResourceController extends Zend_Controller_Action
header('Pragma: no-cache');
header('Expires: 0');
- if($bme->getKcl() != null){
- @list($bootos) = $bootosmapper->findBy(array('defaultkcl', $bme->getKcl()));
- $kcl = $bootos->getDefaultkcl();
+ if($bme->getKcl()){
+ $kcl = $bootosmapper->find($bme->getBootosID())->getDefaultkcl();
$result = $kcl . " alpha=" . $this->_request->getParam('alpha') . " " . $bme->getKclappend();
}else{