[REF] Minor cleanup on emailReceipt
authoreileen <emcnaughton@wikimedia.org>
Sun, 17 Jan 2021 21:43:35 +0000 (10:43 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 17 Jan 2021 21:48:13 +0000 (10:48 +1300)
commit48b9327c00f16ed6ed492116d6e651ea3bbadd60
treed205d9a9d5b606b3bc26de7ef595aaf10cc97493
parentefbd97476880b5bbc324e3cccc88d3018b7f6aa2
[REF] Minor cleanup on emailReceipt

Fixes 2 things
1) empty check on line items when it is never set
2) starts to move code out of the shared-function to the form function
when it is only possible when called via the form function. The sharing here
is one of those cases where only a small part of the shared code is actually shared
CRM/Member/Form/Membership.php