From 4159f12854140514403deba13535d3b70b470102 Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Thu, 20 Sep 2018 01:22:42 +0200 Subject: [PATCH] fix company info update --- .../app/plugins/wiaas/includes/user/class-wiaas-customer.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/app/plugins/wiaas/includes/user/class-wiaas-customer.php b/backend/app/plugins/wiaas/includes/user/class-wiaas-customer.php index b0426a4..e2c15fc 100644 --- a/backend/app/plugins/wiaas/includes/user/class-wiaas-customer.php +++ b/backend/app/plugins/wiaas/includes/user/class-wiaas-customer.php @@ -74,8 +74,9 @@ class Wiaas_Customer { } public static function update_customer_company_info($customer_id, $company_name, $vat_code){ - $result = update_user_meta( $customer_id, 'company_name', $company_name); - return $result || update_user_meta( $customer_id, 'vat_code', $vat_code ); + $result1 = update_user_meta( $customer_id, 'company_name', $company_name); + $result2 = update_user_meta( $customer_id, 'vat_code', $vat_code ); + return $result1 || $result2; } public static function update_customer_billing_addresses($customer_id, $new_address){