From 431c0480425f7198b53d7f83b024e9a24b2fb248 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Sat, 10 Apr 2010 12:28:51 +0000 Subject: [PATCH] * if no record, exit. --- trunk/module/build/control.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trunk/module/build/control.php b/trunk/module/build/control.php index 54bb185ff6..afd9cee8ab 100644 --- a/trunk/module/build/control.php +++ b/trunk/module/build/control.php @@ -74,6 +74,8 @@ class build extends control { /* 设置菜单。*/ $build = $this->build->getById((int)$buildID); + if(!$build) die(js::error($this->lang->notFound) . js::locate('back')); + $this->loadModel('project')->setMenu($this->project->getPairs(), $build->project); /* 赋值。*/