Robbie Williams has been told to hand over 25% of the earnings from one of his songs.
But he won his High Court battle not to have to pay all his income from Jesus In A Camper Van.
The judge also ruled the song should not be included on future copies of Robbie's album I've Been Expecting You.
The song was co-written by Guy Chambers.
The court had previously ruled that it was a breach of copyright in Woodie Guthrie's I Am The Way, and in an adaptation of the song by Loudon Wainwright III.
That song is owned by American music publisher Ludlow Music Inc.
Robbie's record label EMI offered Ludlow 25% of the income from the song in recognition of this.
Ludlow rejected this, claiming that it was entitled to all of the income from the song.
Mr Justice Pumfrey ruled today at the High Court in London that Ludlow was only entitled to a 25% share of the song.