From 08291317c2e83fc3dab33fd468c6bc1e0a1ad508 Mon Sep 17 00:00:00 2001 From: eileen Date: Wed, 23 Sep 2020 15:31:07 +1200 Subject: [PATCH] Remove unused variable --- CRM/Activity/BAO/Activity.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } } } -- 2.25.1