From 0fc6a846f1a8bde626317577ca43134ed1e00dc5 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Wed, 16 Nov 2011 10:00:26 +0000 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=86=E8=AF=84=E5=AE=A1?= =?UTF-8?q?=E6=84=8F=E8=A7=81=E4=B8=8D=E5=AD=98=E5=9C=A8=E7=9A=84=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/ReviewController.php | 6 ++++++ 1 file changed, 6 insertions(+) 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";