소스 검색

bugfix

master
patrick 6 년 전
부모
커밋
f403f558e1
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      Xero.php

+ 2
- 2
Xero.php 파일 보기

@@ -159,7 +159,7 @@ class Xero {
$args = $this->xero_contact_profile($xero_contact);
$id = wp_insert_user($args);
if (! id instanceof \WP_Error){
if (! $id instanceof \WP_Error){
$user = get_user_by('ID', $id);
update_user_meta($user->ID, 'address', $args['address']);
update_user_meta($user->ID, 'account', $args['account']);
@@ -260,7 +260,7 @@ class Xero {
$xero_employee = $this->getEmployee($login);
$args = $this->xero_employee_profile($xero_employee);
$id = wp_insert_user($args);
if (! id instanceof \WP_Error){
if (! $id instanceof \WP_Error){
$user = get_user_by('ID', $id);
update_user_meta($user->ID, 'mobile', $args['mobile']);
update_user_meta($user->ID, 'address', $args['address']);

Loading…
취소
저장