Updated

The actor best known for his role as Darryl Philbin on NBC's "The Office" entered a "tentative guilty plea" on Wednesday in his drug case, TMZ reported.

Craig Phillip Robinson, 36, entered the plea regarding possession of ecstasy, a felony. The other charges against him were dismissed, the Web site said.

According to documents released last Friday, police in Culver City, Calif., arrested Robinson on June 29 on suspicion of possessing MDMA, also known as ecstasy, and methamphetamine.

Los Angeles County prosecutors charged Robinson with two felony counts of drug possession and one count of being under the influence of illegal drugs.

Robinson will enter a drug counseling program and if he completes it in 18 months, the guilty plea will be withdrawn and dismissed, and he won't have a conviction on his record, TMZ reported.

"Mr. Robinson really appreciates and takes seriously the opportunity which has been given to him by the court and the prosecution to have all of the charges against him dismissed, upon successful completion of a counseling program," his lawyer, Blair Berk, told the Web site.

Robinson was on probation for a DUI he got in 2006, but he's already completed the terms of probation for that case, TMZ reported.

Robinson recently appeared in the movie "Pineapple Express."

The Associated Press contributed to this report.

Click here to read more in this story at TMZ.com