Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-3242

CRM_Core_BAO_UFGroup::formatFields should not use uninitialized $primaryEmail

    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

      { $data['location'][$loc]['email'][$loc]['email'] = $primaryEmail; }
      </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.

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              davidstrauss David Strauss
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: