Singer Courtney Love has been ordered to enter a drug rehab clinic by a judge who said he would consider sending her to jail for violating her parole terms.
Courtney Love wept as the judge threatened her with jail
The singer sobbed as the judge in the US city of Los Angeles said she needed to "hit rock bottom" before she could overcome her addiction to drugs.
Love has received several probation orders recently for offences ranging from drug abuse to assault.
She is now expected to spend a month at a residential treatment centre.
Her latest court appearance follows reports that she was rushed to hospital last month.
Although her representatives said she had merely been feeling "faint", prosecutors in Los Angeles say Love was under the influence of a "controlled substance" at the time.
In court on Friday, Love's lawyer acknowledged his client had suffered a "relapse" but said she was determined to "move forward".
Los Angeles Deputy District Attorney Gina Satriano said Love could have further probation conditions imposed on her - and even receive a year in jail - when she returns to court to be sentenced for her parole violation next month.
Love pleaded guilty in May 2004 and in February 2005 to separate charges of being under the influence of cocaine and of illegal possession of a painkiller.
The former singer of the band Hole and widow of grunge rock star Kurt Cobain also pleaded no contest to an assault charge in February this year, which happened while she was already on probation.