From de948b815baef63d01c2be07c87e05150d4a7cc3 Mon Sep 17 00:00:00 2001 From: eileen Date: Mon, 7 Oct 2019 17:35:40 +0200 Subject: [PATCH] [NFC] minor cleanup As part of checking where the return output of this function is used I find that it can be condensed to one line --- CRM/Event/Form/ManageEvent/Location.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CRM/Event/Form/ManageEvent/Location.php b/CRM/Event/Form/ManageEvent/Location.php index 7e2c8a8889dc..3573106ad521 100644 --- a/CRM/Event/Form/ManageEvent/Location.php +++ b/CRM/Event/Form/ManageEvent/Location.php @@ -262,8 +262,7 @@ public function postProcess() { } // create/update event location - $location = CRM_Core_BAO_Location::create($params, TRUE, 'event'); - $params['loc_block_id'] = $location['id']; + $params['loc_block_id'] = CRM_Core_BAO_Location::create($params, TRUE, 'event')['id']; // finally update event params $params['id'] = $this->_id;