Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Critical
-
Resolution: Fixed/Completed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Component/s: Core CiviCRM
-
Labels:None
Description
<code>
} else
</code>
should be
<code>
} else if (isset($primaryEmail)) { $data['location'][$loc]['email'][$loc]['email'] = $primaryEmail; }
</code>
$primaryEmail is uninitialized if a contact ID isn't passed in.