Shia LaBeouf
Credit: Raymond Hall/GC Images file

Shia LaBeouf was arrested for disorderly conduct at a June performance of Broadway’s Cabaret, and the Associated Press reports the actor appeared in court Wednesday to plead guilty to those charges.

LaBeouf was escorted out of the theater during Cabaret‘s first act June 26 after allegedly yelling and smoking throughout the performance. He spent the night in jail and later sought treatment for an addiction to alcohol. “He understands that these recent actions are a symptom of a larger health problem and he has taken the first of many necessary steps towards recovery,” his publicist said in July.

LaBeouf’s plea deal doesn’t require any jail time, the Associated Press reports, but he does have to remain in outpatient rehab for a minimum of three months and stay out of trouble for six months in order for the case to be dismissed.