增加了评审意见不存在的判断

This commit is contained in:
Li Jianxuan 2011-11-16 10:00:26 +00:00
parent 2d866ccdb2
commit 0fc6a846f1
1 changed files with 6 additions and 0 deletions

View File

@ -920,6 +920,12 @@ class Admin_ReviewController extends Zend_Controller_Action
$row = $rs->fetch(); $row = $rs->fetch();
if(empty($row['id']))
{
$this->messenger->addMessage('该评审不存在或者已删除');
$this->_redirect($redirect);
}
$sql = "select att.realname,att.id from attachments att $sql = "select att.realname,att.id from attachments att
left join mdreviewattach ratt on att.id=ratt.attachid left join mdreviewattach ratt on att.id=ratt.attachid
where ratt.reviewid=$id"; where ratt.reviewid=$id";