In prosecutions for violations of the ordinances of the village, commenced by a person other than an officer of the village, the court may require the complaining witness to file security for the payment of the costs of the proceedings, in case the defendant is determined not to be responsible. But the judge or magistrate before whom the complaint is made or trial is had shall order that the complaining witness is not liable for the payment of costs if the magistrate or judge determines that there was probable cause for the making of the complaint.
MCL 66.12