Ignore:
Timestamp:
Jan 30, 2015 2:46:11 PM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php

    r717 r721  
    145145        $user['expire_date'] = date('Y-m-d', strtotime("+" . $package['p_period'] . " ".$package['p_unit'], strtotime($currentExpireDate)));
    146146        $user['p_id'] = $package['p_id'];
    147                 //$user['district'] = $input['district'];
    148147                $user['province'] = $input['province'];
    149148        $this->user_model->updateUser($us_id, $user);
     
    252251                    $result['errors'][] = array("content"=>lang('_SBG_REGISTER_VIP_SCHOOL_REQUIRED_MSG'),"field"=>"school");
    253252                }
    254 
     253                                if (strlen($input['province']) == 0) {
     254                    $result['errors'][] = array("content"=>lang('_SBG_PROVINCE_REQUIRED_MSG'),"field"=>"province");
     255                }
    255256                $input['password'] = '';
    256257                $input['oldpass'] = '';
    257                 //$input['province'] = '';
    258258                $this->load->model('user_model');
    259259                if (!isset($result['errors'])) {
Note: See TracChangeset for help on using the changeset viewer.