Lindsay Lohan was freed from a Los Angeles jail after posting bail, according to a sheriff's spokesman.
After one judge ordered her held without bail until a court hearing next month, a second judge cleared the way for her release on $300,000 bail on several conditions -- including that she be fitted with an alcohol-monitoring bracelet within 24 hours of her release and refrain from drinking alcohol or possessing controlled substances, The Associated Press reports.
Los Angeles Superior Court Judge Patricia Schnegg set the bail after Lohan's attorney appealed another ruling earlier in the day. Schnegg ruled that defendants in misdemeanor cases such as Lohan's are entitled to bail.
Earlier, Superior Court Judge Elden Fox ordered the troubled actress, 24, taken into custody without bail and scheduled Lohan's next court appearance for Oct. 22.
Clad in a flowing white skirt, a form fitting black top and a blazer, Lohan showed no emotion as she was handcuffed and led out of court. She arrived in court with her mother, Dina Lohan. Her estranged father, Michael Lohan, also showed up for her court hearing.
Lohan's return to jail came after her admission last week that she failed a court-mandated drug test.
"Regrettably, I did in fact fail my most recent drug test and if I am asked, I am prepared to appear before Judge Fox next week as a result," Lohan wrote on her Twitter account last week. "I am so thankful for the support of my fans, loved ones and immediate family, who understand that i am trying hard, but also that I am a work in progress, just as anyone else. I am keeping my faith, and I am hopeful....Thank you all!!!"
The stint behind bars was Lohan's third round in jail for a three-year-old drug and DUI case filed after a two highly publicized arrests in 2007. Lohan left a rehab program at UCLA Medical Center on Aug. 24 after 23 days of treatment. Earlier in August, she was released from jail after serving just 13 days of a 90 day sentence for violating her probation.
At a hearing last month, Fox ordered Lohan to go to weekly psychotherapy and behavioral therapy sessions, in addition to 12-step dependency program meetings and mandatory drug tests. Fox said if Lohan was found to be in violation of the terms of her probation, she could go to jail again for 30 days. Last week, prior to Lohan's Twitter admission, TMZ.com reported that she tested positive for cocaine.
"A judge will routinely revoke probation when he receives a report from a probation officer, under oath, that the probationer has violated a condition of probation, such as illegal drug use," said Dana Cole, a criminal defense attorney and partner in the law firm Cole and Loeterman in Los Angeles.
In recent months, Lohan has maintained that she's more than a problem child. In an interview with Vanity Fair magazine, done prior to her last jail and rehab stint, Lohan said she wants A-list status in Hollywood again, by any means necessary.