Pakistan's Supreme Court has found Prime Minister Yousuf Raza Gilani guilty in a contempt of court case.
However, the court gave Mr Gilani only a symbolic sentence and he will not have to serve any time in jail.
Mr Gilani had denied that he had been in contempt for failing to reopen corruption cases against President Asif Ali Zardari, the BBC reports.
The prime minister had argued that the president, who rejects the corruption charges, has immunity as head of state.
The court sentenced Mr Gilani to a few minutes of detention in the court, leaving him free to continue his post.
The trial lasted three months.