|
@@ 583-588 (lines=6) @@
|
| 580 |
|
$user_entity->set('sector', json_encode($value)); |
| 581 |
|
break; |
| 582 |
|
case 'location': |
| 583 |
|
if (!isset($value['en'])){ |
| 584 |
|
$response['error'] = 4; |
| 585 |
|
$response['message'] = 'missing english location data'; |
| 586 |
|
return $response; |
| 587 |
|
|
| 588 |
|
} |
| 589 |
|
$locationData = json_decode(json_encode($value['en']), true); |
| 590 |
|
if(!isset($locationData['street'])&&!isset($locationData['city'])&&!isset($locationData['province'])&&!isset($locationData['postalCode'])&&!isset($locationData['country'])&&!isset($locationData['building'])&&!isset($locationData['floor'])&&!isset($locationData['officeNum'])){ |
| 591 |
|
$response['error'] = 4; |
|
@@ 601-606 (lines=6) @@
|
| 598 |
|
return $response; |
| 599 |
|
} |
| 600 |
|
|
| 601 |
|
if (!isset($value['fr'])){ |
| 602 |
|
$response['error'] = 4; |
| 603 |
|
$response['message'] = 'missing french location data'; |
| 604 |
|
return $response; |
| 605 |
|
|
| 606 |
|
} |
| 607 |
|
$locationData = json_decode(json_encode($value['fr']), true); |
| 608 |
|
if(!isset($locationData['street'])&&!isset($locationData['city'])&&!isset($locationData['province'])&&!isset($locationData['postalCode'])&&!isset($locationData['country'])&&!isset($locationData['building'])&&!isset($locationData['floor'])&&!isset($locationData['officeNum'])){ |
| 609 |
|
$response['error'] = 4; |
|
@@ 881-886 (lines=6) @@
|
| 878 |
|
|
| 879 |
|
break; |
| 880 |
|
case 'location': |
| 881 |
|
if (!isset($value['en'])){ |
| 882 |
|
$response['error'] = 4; |
| 883 |
|
$response['message'] = 'missing english location data'; |
| 884 |
|
return $response; |
| 885 |
|
|
| 886 |
|
} |
| 887 |
|
$locationData = json_decode(json_encode($value['en']), true); |
| 888 |
|
if(!isset($locationData['street'])&&!isset($locationData['city'])&&!isset($locationData['province'])&&!isset($locationData['postalCode'])&&!isset($locationData['country'])&&!isset($locationData['building'])&&!isset($locationData['floor'])&&!isset($locationData['officeNum'])){ |
| 889 |
|
$response['error'] = 4; |
|
@@ 899-904 (lines=6) @@
|
| 896 |
|
return $response; |
| 897 |
|
} |
| 898 |
|
|
| 899 |
|
if (!isset($value['fr'])){ |
| 900 |
|
$response['error'] = 4; |
| 901 |
|
$response['message'] = 'missing french location data'; |
| 902 |
|
return $response; |
| 903 |
|
|
| 904 |
|
} |
| 905 |
|
$locationData = json_decode(json_encode($value['fr']), true); |
| 906 |
|
if(!isset($locationData['street'])&&!isset($locationData['city'])&&!isset($locationData['province'])&&!isset($locationData['postalCode'])&&!isset($locationData['country'])&&!isset($locationData['building'])&&!isset($locationData['floor'])&&!isset($locationData['officeNum'])){ |
| 907 |
|
$response['error'] = 4; |