And this was the pre-existing enotice
authoreileen <emcnaughton@wikimedia.org>
Thu, 8 Aug 2019 03:04:39 +0000 (15:04 +1200)
committereileen <emcnaughton@wikimedia.org>
Thu, 8 Aug 2019 03:04:39 +0000 (15:04 +1200)
CRM/Contact/Import/Form/MapField.php

index 665f16b96cd777fb1f470ac45dd0b0497dad1e9b..df77083cca2c33b163355ecc21cd9f26594203d2 100644 (file)
@@ -969,7 +969,7 @@ class CRM_Contact_Import_Form_MapField extends CRM_Import_Form_MapField {
             elseif (isset($imProvider)) {
               $typeId = $imProvider;
             }
-            $defaults["mapper[$i]"] = [$mappingHeader[0], $locationId, $typeId];
+            $defaults["mapper[$i]"] = [$mappingHeader[0] ?? '', $locationId, $typeId];
           }
 
           if ((!$phoneType) && (!$imProvider)) {