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
Five members of the Armed Forces have been granted operational honours and awards in recognition of their service.
The Conservative peer said he was 'shocked' that the law had been vetoed by the Liberal Democrats.
A woman who attempted to get her idol's full pout was left with hugely swollen lips when her plan went horribly wrong.