Commit 986b0ea8 by Zen-PC\Zen

Zen : update tin

parent d4bc76e6
......@@ -13,7 +13,7 @@ class CheckemailsController extends AppController {
'email' => $this->request->data['email']
]
])->first();
if(!empty($emails)){
if(!empty($emails)&&$emails['email']!=''&&$emails['email']!='-'){
$emails['chk'] = 'false';
$data = json_encode($emails);
echo $data;
......@@ -35,7 +35,7 @@ class CheckemailsController extends AppController {
'email' => $this->request->data['email']
]
])->first();
if(!empty($emails)){
if(!empty($emails)&&$emails['email']!=''&&$emails['email']!='-'){
if($this->request->data['userId'] == $emails['user_id']){
$emails['chk'] = 'true';
$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