ARTICLE AD BOX
By Caroline Davies & Kathryn Armstrong
in Islamabad and London
Former Pakistan Prime Minister Imran Khan has had his three-year sentence for corruption suspended, but it is unclear if he will be freed from jail.
The Islamabad High Court gave him bail until his appeal against unlawfully selling state gifts is heard.
However, the court has also ordered the 70-year-old to be kept in custody until Wednesday in a separate case.
Mr Khan's lawyers say more than 100 charges have been brought against him since his removal from power last year.
These include leaking state secrets and organising violent protests. Various arrest warrants have been issued in relation to these charges.
The former prime minister's lawyers are seeking a Supreme Court order to prevent him from being detained in any other case, but no date has been set to hear this petition.
Mr Khan's lawyers said the Supreme Court was waiting to hear Tuesday's outcome in the High Court before they set one.
He claims all the charges against him are politically motivated.
The international cricket star-turned-politician was sentenced to three years in jail on 5 August for not declaring money earned from selling gifts he received during his time in office, which began in 2018.
The gifts - reported to be worth more than 140m Pakistani rupees ($635,000; £500,000) - included Rolex watches, a ring and a pair of cuff links.
As a result of that conviction, he was barred from contesting an election for five years.
The so-called "cipher case" that Mr Khan is now being kept in jail for relates to the alleged leaking of a diplomatic cable.
The news of his suspended sentence comes a day after another high court dismissed sedition charges against him, saying they had been improperly filed.
The government has denied there was any political motivation in Mr Khan's arrest or disqualification from running for public office.
He is currently being held in Attock jail, a small facility in Punjab province with historical ties to the military, about 85km (52 miles) from the capital Islamabad.
According to local media, a number of members of Mr Khan's Pakistan Tehreek-e-Insaf (PTI) party have previously been held there.
Prior to his sentencing, he had managed to avoid arrest for months, with his supporters at times fighting pitched battles with police to keep him out of custody.
On 9 May, Mr Khan was arrested for not appearing at court as requested. He was released three days later, with the arrest ruled illegal.
But the arrest sparked protests across Pakistan - some of them violent and many targeting installations belonging to the military who demonstrators blamed for his downfall. Several thousand of his supporters were alleged to have been involved in the protests and were arrested.
Since then, Mr Khan and the PTI have faced a crackdown, with many of his senior leadership arrested, before announcing they were leaving the party. Many vocal supporters of Mr Khan now feel nervous to express their opinion or even have quietly deleted their previous comments.
Some of those arrested for supporting Mr Khan will face trial in military courts, despite an outcry from human rights groups.
Mr Khan has previously said the army in Pakistan was "petrified" of elections which his party would win "hands down" and, for that reason, "they're dismantling a democracy".
The army plays a prominent role in Pakistan's politics, sometimes seizing power in military coups and, on other occasions, pulling levers behind the scenes.
Many analysts believe Mr Khan's election win in 2018 happened with the help of the military.
In opposition, he has been one of its most vocal critics, and analysts say the army's popularity has fallen.
Pakistan's parliament was dissolved on 9 August, leaving a caretaker government to take over in the run-up to general elections due this year, but likely to be delayed.
It is unclear if they will take place by early November, as required in the constitution.