Selena Gomez has (hopefully) gotten the help she needed.

The 21-year-old singer quietly checked herself into a rehab facility last month, but it wasn't to treat substance abuse, her rep said Wednesday.

RadarOnline.com was the first to report that the former Disney starlet spent two weeks in January at the Dawn of the Meadows facility in Wickenburg, Ariz. The center treats conditions including trauma, co-dependency, depression, drug and alcohol addiction, love avoidance and panic and anxiety disorders.

"Selena voluntarily spent time at Meadows but not for substance abuse," Gomez's rep told us.

In December, Justin Bieber's ex-flame canceled a portion of her tour, saying at the time that she needed to focus on herself.

"My fans are so important to me and I would never want to disappoint them," she said in a statement. "But it has become clear to me and those close to me that after many years of putting my work first, I need to spend some time on myself in order to be the best person I can be."

According to TMZ.com, Gomez's decision to enter rehab was largely based on spending time with "that crazy boy" Bieber, who as of late has had several run-ins with the law and is also reportedly struggling with a drug problem.

Thieves use car to ram dealership, steal sports car ... LI could see more extreme weather... Newsday Investigates: Financial fixes for NUMC Credit: Newsday

Ex-fire medic settles rape case for $500G ... Thieves use car to ram dealership, steal sports car ... Spike in East End farm stand thefts ... 9/11 attacks killing LIers

Thieves use car to ram dealership, steal sports car ... LI could see more extreme weather... Newsday Investigates: Financial fixes for NUMC Credit: Newsday

Ex-fire medic settles rape case for $500G ... Thieves use car to ram dealership, steal sports car ... Spike in East End farm stand thefts ... 9/11 attacks killing LIers

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME