A note on the Ehrhard inequality