A western Pennsylvania schoolteacher fired after she admitted having had sex with another teacher inside a classroom a decade ago is back on the job following an appeals court decision overturning her firing.

A Commonwealth Court ruling a year ago said the former Cornell Intermediate School fourth-grade teacher had an "implied" immunity agreement when she testified during a 2005 hearing on the other teacher.

The opinion did not specifically order that she be rehired. The state Supreme Court declined to hear an appeal in March.

Fabiano said the district has provided no compensation for lost wages and benefits, but "we're working on trying to amicably resolve those issues."

Fabiano said DiBattista told him after her return that "she thought this day would never come."

"She told me she got all anxious and a little scared, and she gave some thought of turning around and going home, but she didn't," he said.

A district spokeswoman declined comment on DiBattista's status, saying it was a personnel matter.

New rankings: Best high schools in Pennsylvania

1 of 23

U.S. News & World Report has compiled its annual rankings of the best public high schools for 2015. High schools were evaluated on the student/teacher ratio, how 12th-graders performed on their AP tests and how they performed in the subjects of math and reading on their state exit exams. Here are the Top 20 schools in Pennsylvania from this year's rankings.