A Ugandan court has invalidated an anti-gay law the country issued earlier this year, saying it was passed illegally, according to reports.
CBC News said a five-judge panel in the African country’s constitution court ruled a parliamentary leader should not have allowed a vote on the measure because there were three objections about the lack of a quorum.
“We come to the conclusion that she acted illegally,” the panel said, CBC News reported.
The outlet said the packed courtroom featured activists on both sides of the issue. The pro-gay contingent erupted in loud cheers after the ruling.
Although the measure attracted support in Uganda, CBC reported the country faced wide condemnation in the West after it passed the law, which provided for prison terms up to life for engaging in gay sex, and lengthy terms for “attempted homosexuality” or the “promotion of homosexuality.”
It is unclear whether the state will appeal the ruling.