(705 ILCS 405/2-8) (from Ch. 37, par. 802-8)
    Sec. 2-8. Investigation; release. When a minor is delivered to the court, or to the place designated by the court under Section 2-7 of this Act, a probation officer or such other public officer designated by the court shall immediately investigate the circumstances of the minor and the facts surrounding his or her being taken into custody. The minor shall be immediately released to the custody of his or her parent, guardian, legal custodian or responsible relative, unless the probation officer or such other public officer designated by the court finds that further temporary protective custody is necessary, as provided in Section 2-7.
(Source: P.A. 85-601.)