Section 245(2) in The Code of Criminal Procedure, 1989 (1933 A. D.)
(2)Sentence.- Where the Magistrate does not proceed in accordance with the provisions of section 349 or section 562, he shall, if he finds the accused guilty, pass sentence upon him according to law.