Ignore:
Timestamp:
Nov 13, 2014 8:37:42 PM (11 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php

    r495 r496  
    7979                $token = md5($username.self::TOKENPW);         
    8080                $phone = $username;
    81                 if (!is_null($collabolator) || $collabolator != ''){
    82                         if($this->isExistCollabolator($collabolator)){
     81                if (!is_null($collaborator) || $collaborator != ''){
     82                        if($this->isExistcollaborator($collaborator)){
    8383                                $data = $this->vservices->actionExecute('update', array('src'=>$src, 'username'=>$username, 'password'=>$password, 'fullname'=>null, 'phone'=>$username, 'token'=>$token), 'user');
    8484                                parse_str($data);
     
    363363        }
    364364       
    365         function isExistCollabolator($collabolator)
    366         {
    367                 $this->db->select('*')->from('tbluser')->where('collabolator', $cellphone)->limit(1);
     365        function isExistcollaborator($collaborator)
     366        {
     367                $this->db->select('*')->from('tblcollaborator')->where('login_name', $collaborator)->limit(1);
    368368                $result = $this->db->get()->row_array();
    369369                if ($result) return true; else return false;
Note: See TracChangeset for help on using the changeset viewer.