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
Big celebrations for one couple and their families after they got married - in a busy shopping centre !
Justin Timberlake has confirmed he and his wife Jessica Biel are expecting their first child together.
Donations for a frail and visually impaired pensioner who was attacked outside his home have passed £200,000.