Skip to content

Commit

Permalink
[NFC] minor cleanup
Browse files Browse the repository at this point in the history
As part of checking where the return output of this function is used I find that it can be condensed to one line
  • Loading branch information
eileenmcnaughton committed Oct 7, 2019
1 parent dc24e56 commit de948b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CRM/Event/Form/ManageEvent/Location.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit de948b8

Please sign in to comment.