- Timestamp:
- Jan 29, 2015 5:32:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php
r716 r717 242 242 parse_str($user_info['user'], $info); 243 243 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 } 247 251 if (strlen($input['school']) == 0) { 248 252 $result['errors'][] = array("content"=>lang('_SBG_REGISTER_VIP_SCHOOL_REQUIRED_MSG'),"field"=>"school"); … … 251 255 $input['password'] = ''; 252 256 $input['oldpass'] = ''; 253 $input['province'] = '';257 //$input['province'] = ''; 254 258 $this->load->model('user_model'); 255 259 if (!isset($result['errors'])) {
Note: See TracChangeset
for help on using the changeset viewer.