fix error

This commit is contained in:
wlx 2013-04-30 01:58:43 +00:00
parent e10be48b32
commit 0168c83146
2 changed files with 3 additions and 3 deletions

View File

@ -1972,7 +1972,7 @@ class DataController extends Zend_Controller_Action
$id = (int)$this->_request->getParam('id'); $id = (int)$this->_request->getParam('id');
if (!empty($id)) { if (!empty($id)) {
$sql="select * from fund where id=?"; $sql="select * from fund where id=?";
$this->view->fund=$this->db->fetch($sql,array($id)); $this->view->fund=$this->db->fetchRow($sql,array($id));
if ($this->view->fund) { if ($this->view->fund) {
$sql="select distinct m.* from normalmetadata m left join mdfund mf on m.uuid=mf.uuid where mf.fid=?"; $sql="select distinct m.* from normalmetadata m left join mdfund mf on m.uuid=mf.uuid where mf.fid=?";
$sth = $this->db->prepare($sql); $sth = $this->db->prepare($sql);

View File

@ -13,8 +13,8 @@ $this->breadcrumb()->setSeparator(' > ');
<?= $this->partial('data/tools.phtml'); ?> <?= $this->partial('data/tools.phtml'); ?>
</div> </div>
<div class="well"> <div class="well">
<h4><a href="/data/fund/id/<?php echo $md['id'];?>"><?php echo $this->escape($md['title']);?></a></h4> <h4><a href="/data/fund/id/<?php echo $this->fund['id'];?>"><?php echo $this->escape($this->fund['title']);?></a></h4>
编号:<?php echo $md['fund_id']; ?> | 类型:<?php echo $md['fund_type']; ?> 编号:<?php echo $this->fund['fund_id']; ?> | 类型:<?php echo $this->fund['fund_type']; ?>
</div> </div>
<?php if (!empty($this->paginator)) : ?> <?php if (!empty($this->paginator)) : ?>
<hr /> <hr />