section 542(2)


542(2) Every one who publishes in any document, or broadcasts or transmits in any way, a report that any admission or confession was tendered in evidence at a preliminary inquiry or a report of the nature of such admission or confession so tendered in evidence unless (a) the accused has been discharged, or (b) if the accused has been ordered to stand trial, the trial has ended, is guilty of an offence punishable on summary conviction.