bielawb / EWS

Exchange Web Services PowerShell module
MIT License
26 stars 12 forks source link

Bug in New-EWSContact - $Email overwritten. #9

Closed bielawb closed 6 years ago

bielawb commented 7 years ago

Looks like I managed to overwrite one of parameters in the body of the function:

param (
# ...
    [hashtable[]]$Email,
)
# ...
    if ($email = $hash.email) {
# ...

This makes $Email parameter useless. Need to rename local variable to avoid collision.