From bdcf3f8fa48dd6ce9c134834b2988e4893deded5 Mon Sep 17 00:00:00 2001 From: Mike Wang Date: Tue, 9 Feb 2016 16:55:27 +0800 Subject: [PATCH] Update user.class.php Correct a small mistake. --- controller/user.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/user.class.php b/controller/user.class.php index b70118c..df83383 100755 --- a/controller/user.class.php +++ b/controller/user.class.php @@ -171,7 +171,7 @@ class user extends Controller * 登录数据提交处理 */ public function loginSubmit(){ - if(!isset($this->in['name']) || !isset($this->in['password'])) { + if(isset($this->in['name']) || isset($this->in['password'])) { $msg = $this->L['login_not_null']; }else{ //错误三次输入验证码 @@ -289,4 +289,4 @@ class user extends Controller $_SESSION['check_code'] = strtolower($code); check_code($code); } -} \ No newline at end of file +}