Gerard Butler is on the mend.

The Scottish actor, 42, has wrapped up a substance treatment program, his rep confirmed.

PHOTOS: Stars who've gone to rehab

"Gerard has completed a successful course of treatment and has returned home in good health," the spokesperson told E! News. "We will not be making any further comment at this time."

According to TMZ, the Bounty Hunter star checked in to the Betty Ford Center three weeks ago to deal with an escalating problem with prescription pills.

PHOTOS: Gerard gets handsy with Jen Aniston

Butler's problem reportedly began following injuries while making the action epic 300 in 2006; a December 2011 surfing accident in his film Of Men and Mavericks made his pain-management challenges worse.

PHOTOS: Gerard surfing on set

TMZ also reports that Butler struggled with cocaine use as well.

Get more Us! Follow us on Twitter, Friend us on Facebook, Subscribe to Us Weekly