(1) When a person for whose appearance a summons or warrant has been issued under the proviso to sub-section (3) of section 121 or under sub-section (10) of section 123, appears or is brought before the Magistrate or Court, the Magistrate or Court shall cancel the bond executed by such person and shall order such person to give, for the unexpired portion of the term of such bond, fresh security of the same description as the original security.
(2) Every such order shall, for the purposes of sections 120 to 123 (both inclusive) be deemed to be an order made under section 106 or section 117, as the case may be.