修改函数写法

This commit is contained in:
Li Jianxuan 2013-12-26 07:27:27 +00:00
parent e8aba81d7d
commit b54c72b565
1 changed files with 3 additions and 2 deletions

View File

@ -383,11 +383,12 @@ class AccountController extends Zend_Controller_Action
public function fetchpwdAction() public function fetchpwdAction()
{ {
$salt = trim($this->_getParam('salt')); $salt = trim($this->_getParam('salt'));
$submit = $this->_getParam('submit');
if(empty($salt)) if(empty($salt))
{ {
$captcha = new Captcha(); $captcha = new Captcha();
if(!empty($this->_getParam('submit')))
if(!empty($submit))
{ {
$email = trim($this->_request->getParam('email')); $email = trim($this->_request->getParam('email'));
$captchaword = trim($this->_request->getParam('captcha')); $captchaword = trim($this->_request->getParam('captcha'));