Lindsay Lohan was ordered back to rehab and not jail by a judge Friday in Los Angeles.
Lohan, 24, was ordered to remain in rehab until Jan. 3 after failing a drug test in September, according to People magazine.
A prosecutor pushed for 6-month stay in jail for Lohan, but the judge chose rehab after reviewing letter from Lohan, according to USA Today.
Lohan voluntarily checked herself into rehab after she failed a drug test last month, according to USA Today.
The actress is due back in court on Feb. 25, according to People magazine.