From: eileen Date: Wed, 23 Sep 2020 03:31:07 +0000 (+1200) Subject: Remove unused variable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=08291317c2e83fc3dab33fd468c6bc1e0a1ad508;p=civicrm-core.git Remove unused variable --- diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index ad656ea906..1bea3cd02e 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -411,11 +411,9 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity { } // attempt to save activity targets - $resultTarget = NULL; if (!empty($params['target_contact_id'])) { $targetParams = ['activity_id' => $activityId]; - $resultTarget = []; if (is_array($params['target_contact_id'])) { // first delete existing targets if any self::deleteActivityContact($activityId, $targetID); @@ -442,11 +440,11 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity { if ($target->contact_id != $params['target_contact_id']) { $targetParams['id'] = $target->id; - $resultTarget = CRM_Activity_BAO_ActivityContact::create($targetParams); + CRM_Activity_BAO_ActivityContact::create($targetParams); } } else { - $resultTarget = CRM_Activity_BAO_ActivityContact::create($targetParams); + CRM_Activity_BAO_ActivityContact::create($targetParams); } } }