Temperature variations in the solar photosphere