修改文件上传时的逻辑错误

This commit is contained in:
Li Jianxuan 2011-10-14 09:33:44 +00:00
parent 889d4a4bbf
commit d55e2f9cec
1 changed files with 5 additions and 5 deletions

View File

@ -851,14 +851,14 @@ class Admin_DataController extends Zend_Controller_Action
else
{
$this->messenger->addMessage('读取用户信息出错');
$this->_redirect("/admin/data/attachments/add/1");
@unlink($filename);
$this->_redirect("/admin/data/attachments/add/1");
}
}else
{
$this->messenger->addMessage('附件上传失败:'.$msg['error']);
$this->_redirect("/admin/data/attachments/add/1");
@unlink($filename);
$this->_redirect("/admin/data/attachments/add/1");
}
}
}//附件添加