Ignore:
Timestamp:
Jan 29, 2015 5:32:13 PM (10 years ago)
Author:
namnd
Message:
 
File:
1 edited

Legend:

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

    r716 r717  
    242242            parse_str($user_info['user'], $info);
    243243            if ($input) {
    244                 if (strlen($input['fullname']) == 0) {
    245                     $result['errors'][] = array("content"=>lang('_SBG_FULLNAME_REQUIRED_MSG'),"field"=>"fullname");
    246                 }
     244                                if (array_key_exists('fullname', $input)) {
     245                                        if (strlen($input['fullname']) == 0) {
     246                                                $result['errors'][] = array("content"=>lang('_SBG_FULLNAME_REQUIRED_MSG'),"field"=>"fullname");
     247                                        }
     248                                }else{
     249                                        $input['fullname'] = $user['fullname'];
     250                                }
    247251                if (strlen($input['school']) == 0) {
    248252                    $result['errors'][] = array("content"=>lang('_SBG_REGISTER_VIP_SCHOOL_REQUIRED_MSG'),"field"=>"school");
     
    251255                $input['password'] = '';
    252256                $input['oldpass'] = '';
    253                 $input['province'] = '';
     257                //$input['province'] = '';
    254258                $this->load->model('user_model');
    255259                if (!isset($result['errors'])) {
Note: See TracChangeset for help on using the changeset viewer.