fair weather friend
Short definition from Wiktionary
Noun
- Alternative form of fair-weather friend.
- One who is friendly, helpful, or available only when it is advantageous or convenient to be so.
We haven’t written up fair weather friend yet: Simple and Standard meanings, examples and a quiz.