Sara De Boer/Retna Ltd. 1 / 4
Sara De Boer/Retna Ltd. 1 / 4

Former child star Matthew Underwood has avoided a spell behind bars after proving he had completed the conditions of his probation in front of a judge on Friday.

VIDEO: Best TMI tweets

The "Zoey 101" star's probation officer urged lawmakers to send the actor straight to jail, claiming he allegedly failed a drug test and ignored terms of his probation, related to a drug arrest back in 2012.

RELATED: Matthew Underwood pleads not guilty to probation violation

But a judge in the case has dismissed the charges, according to TMZ.com, after Underwood showed proof he's clean and sober and living up to the terms of his probation. He is still on probation for another four months.

RELATED: Child stars: Where are they now