Lindsay Lohan Lindsay Lohan

Lindsay Lohan has bailed out of jail hours after starting her sentence.

The 24-year-old was released late Friday night after posting $300,000 bail, Los Angeles County Sheriff's Department spokesman Steve Whitmore told TVGuide.com.

Lohan was sentenced to 30 days behind bars without bail and was immediately taken into custody after she was found in violation of her probation Friday morning. However, Judge Elden Fox's ruling in the case clashes with California state law, which gives defendants the right to bail in misdemeanor cases.

Lohan's attorney, Shawn Chapman Holley, had filed an appeal for her client to be released on bail immediately following Friday's sentencing.

Lindsay Lohan back behind bars
Judge Fox's decision was reversed late Friday, and bail was set at $300,000. Lohan will have to once again wear a SCRAM bracelet, which monitors alcohol consumption, and must submit to searches by law enforcement at any time. Lohan will be prohibited from being around known drug users and also will be required to stay away from places where alcohol is the "chief item of sale," according to the site.

Lindsay Lohan fails drug test, says she's prepared for consequences

This was the actress' third stint in jail stemming from a 2007 DUI charge. She served 84 minutes later that year and then served just 13 days of a 90-day sentence this summer for violating probation, after which she attended a drug-rehab program.Lohan was expected to be released from jail late Friday. She is due back in court on Oct. 22.