Tatum O'Neal has pleaded guilty to disorderly conduct in connection with her June cocaine possession arrest in lower Manhattan.
Manhattan Criminal Court Judge Elisa Koenderman has ordered O'Neal to spend two half-day sessions in a drug treatment program and pay a $95 surcharge.
If O'Neal has met those conditions when she returns to court on Sept. 4, the case will be dismissed.
O'Neal is the youngest person ever to win an Oscar. The daughter of actor Ryan O'Neal won an Academy Award for best supporting actress for 1973's "Paper Moon."
The former child star has struggled with drugs for years.