If a man, after having promised, either verbally or in writing, a certain dowry to his daughter, loses part of his property, he can give his daughter a dowry in accordance with the property as it is now, and neither father-in-law nor son-in-law shall go to law on that account.