#536 修改一处逻辑错误

This commit is contained in:
Li Jianxuan 2013-07-11 06:59:16 +00:00
parent 3f3198b355
commit 27082e4a26
1 changed files with 1 additions and 1 deletions

View File

@ -3670,7 +3670,6 @@ class Admin_DataController extends Zend_Controller_Action
include('data/Metadata.php');
$md = new Metadata($this->db);
$metadata = $md->view($uuid);
$this->view->data['doi'] = $metadata['doi'];
if(empty($this->view->data))
{
$this->view->data = array(
@ -3683,6 +3682,7 @@ class Admin_DataController extends Zend_Controller_Action
'publisher_en'=>'Cold and Arid Regions Science Data Center at Lanzhou',
);
}else{
$this->view->data['doi'] = $metadata['doi'];
$this->view->data['info'] = $doi->data_process_out($this->view->data);
}
}else{