修复jump始终为1的问题

This commit is contained in:
wlx 2012-05-17 12:47:00 +00:00
parent 0103f38324
commit 2873136f50
1 changed files with 2 additions and 2 deletions

View File

@ -621,8 +621,8 @@ class DataController extends Zend_Controller_Action
$sql="select s.* from datasource d left join source s on d.sourceid=s.id where d.uuid=?";
$row=$this->db->fetchRow($this->db->quoteInto($sql,$uuid));
$jump=(int)$this->_request->getParam('jump');
if (empty($jump)) $jump=1;//默认跳转
if (@$row->has_pages && ($jump!=0))
if (!isset($jump)) $jump=1;//默认跳转
if (@$row->has_pages && ($jump==1))
{
$this->_helper->viewRenderer($row->code.'/view',null,true);
}