Commit 986b0ea8 by Zen-PC\Zen

Zen : update tin

parent d4bc76e6
...@@ -13,7 +13,7 @@ class CheckemailsController extends AppController { ...@@ -13,7 +13,7 @@ class CheckemailsController extends AppController {
'email' => $this->request->data['email'] 'email' => $this->request->data['email']
] ]
])->first(); ])->first();
if(!empty($emails)){ if(!empty($emails)&&$emails['email']!=''&&$emails['email']!='-'){
$emails['chk'] = 'false'; $emails['chk'] = 'false';
$data = json_encode($emails); $data = json_encode($emails);
echo $data; echo $data;
...@@ -35,7 +35,7 @@ class CheckemailsController extends AppController { ...@@ -35,7 +35,7 @@ class CheckemailsController extends AppController {
'email' => $this->request->data['email'] 'email' => $this->request->data['email']
] ]
])->first(); ])->first();
if(!empty($emails)){ if(!empty($emails)&&$emails['email']!=''&&$emails['email']!='-'){
if($this->request->data['userId'] == $emails['user_id']){ if($this->request->data['userId'] == $emails['user_id']){
$emails['chk'] = 'true'; $emails['chk'] = 'true';
$data = json_encode($emails); $data = json_encode($emails);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment