Section 48. If a minor is a material witness, any other person may be allowed to recognize for his appearance; or, in the discretion of the court or justice, he may recognize in a sum not exceeding fifty dollars, which shall be valid and binding in law, notwithstanding his minority.