Sir John Thomas sitting at the High Court ruled that the two men were in breach of the injunction and therefore in contempt of court.
Reflecting on the "gravity" of their offence he said they would be given nine months imprisonment but because of mitigating circumstances it would be suspended.
More top news
Simon Cowell admitted he was "so embarrassed" after his shirt burst open during an X Factor audition.
Following the promise of further powers for Scotland, David Cameron is now talking about a new deal for the other home nations.
The Suitsy: Man creates business suit onesie