|
|
@@ -27,10 +27,16 @@ for($i = 0; $line = fgetcsv($handle); $i++) {
|
|
|
$email = null;
|
|
|
$latitude = null;
|
|
|
$longitude = null;
|
|
|
+ $address_2 = null;
|
|
|
+ $county = null;
|
|
|
+ $phone = null;
|
|
|
|
|
|
if(!empty($line[10])) $email = $line[10];
|
|
|
if(!empty($line[11])) $latitude = $line[11];
|
|
|
if(!empty($line[12])) $longitude = $line[12];
|
|
|
+ if(!empty($line[13])) $address_2 = $line[13];
|
|
|
+ if(!empty($line[14])) $county = $line[14];
|
|
|
+ if(!empty($line[15])) $phone = $line[15];
|
|
|
|
|
|
if(empty($city)) continue;
|
|
|
|
|
|
@@ -50,6 +56,9 @@ for($i = 0; $line = fgetcsv($handle); $i++) {
|
|
|
if(!empty($email)) $location->email = $email;
|
|
|
if(!empty($latitude)) $location->latitude = $latitude;
|
|
|
if(!empty($longitude)) $location->longitude = $longitude;
|
|
|
+ if(!empty($address_2)) $location->address_2 = $address_2;
|
|
|
+ if(!empty($county)) $location->county = $county;
|
|
|
+ if(!empty($phone)) $location->phone = $phone;
|
|
|
|
|
|
$location->city = $city;
|
|
|
$location->legal_entity_name = $legal_entity_name;
|