Heating of the solar photosphere during a white-light flare