Hoff's Ex Gets Dinner and Movie, But Just Barely

6/16/2007 9:44 AM PDT

Hoff's Ex Gets Dinner and Movie, But Just Barely

TMZ has learned what went down with David Hasselhoff and ex-wife Pamela Bach Hasselhoff in court yesterday.

Hasselhoff won primary physical custody and sole legal custody of the former couple's two daughters. Sources day Pamela will have the kids from Friday to Sunday every other weekend. She could also have dinner with the kids Wednesday night, but that's it.

We're told the judge indicated he might be willing to change the ruling to a fifty-fifty split, but only if Bach attends anger management classes for a year and submits to drug and alcohol testing.

Sources tell TMZ a special master (a psychologist) appointed by the court interviewed the family extensively and determined that Pamela was abusive to her kids and refused to submit to drug and alcohol testing. The Hoff has voluntarily agreed to submit to alcohol testing.

So, the Hoff turned one of the messiest burger meals ever into a major courtroom victory.