Mackenzie Phillips pleaded guilty today to felony cocaine possession charges. The former "One Day At a Time" star will not have to do jail time, and will instead enter an 18-month drug treatment program.

"I'd like to take this opportunity to thank [law enforcement] for stopping me, and probably saving my life," Phillips told Judge Keith L. Schwartz. The

As part of the program, if Phillips successfully completes her drug treatment, the entire case will be dismissed. The actress stated she's currently enrolled in a live-in treatment center in Louisiana.

The judge offered enouragement to the actress, who has made several trips to rehab since the 1970s and is currently in a treatment center in Louisiana."You're making tremendous progress [in rehab] and I'm proud of you," Judge Schwartz told Phillips.

Phillips, 48, was arrested at the Los Angeles International Airport in August when she was found "carrying what appeared to be heroin and cocaine in baggies and balloons," according to airport police.

Go to People.com for the full report.