Add in checking on if groupType is set
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 18 Jul 2016 09:30:44 +0000 (09:30 +0000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 18 Jul 2016 09:30:44 +0000 (09:30 +0000)
CRM/Contact/Import/ImportJob.php

index 52ab6d1414436e540b32d9a137a21a6730729f3a..5d206bc5415c585bf6a91ffc961a449d7bbc90d7 100644 (file)
@@ -357,7 +357,7 @@ class CRM_Contact_Import_ImportJob {
 
     if ($newGroupName) {
       /* Create a new group */
-
+      $newGroupType = isset($newGroupType) ? $newGroupType : array();
       $gParams = array(
         'title' => $newGroupName,
         'description' => $newGroupDesc,