diff --git a/application/admin/controllers/ReviewController.php b/application/admin/controllers/ReviewController.php index 37c4bdf4..4409bcca 100644 --- a/application/admin/controllers/ReviewController.php +++ b/application/admin/controllers/ReviewController.php @@ -920,6 +920,12 @@ class Admin_ReviewController extends Zend_Controller_Action $row = $rs->fetch(); + if(empty($row['id'])) + { + $this->messenger->addMessage('该评审不存在或者已删除'); + $this->_redirect($redirect); + } + $sql = "select att.realname,att.id from attachments att left join mdreviewattach ratt on att.id=ratt.attachid where ratt.reviewid=$id";