修改文件上传时的逻辑错误
This commit is contained in:
parent
889d4a4bbf
commit
d55e2f9cec
|
@ -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");
|
||||
}
|
||||
}
|
||||
}//附件添加
|
||||
|
|
Loading…
Reference in New Issue