A Danish man who stabbed an off-duty bouncer is to receive £12,500 for being wrongly held in a detention centre for two weeks after completing his prison term.
The UK Borders Agency has agreed to pay the damages to Simon Granhof as part of a resolution reached at the High Court in Belfast.
Granhof also obtained an order quashing the decision to detain him immediately after he served his jail term.
The 41-year-old was sentenced to four years imprisonment for wounding a man during a fight outside a Co Antrim nightclub in 2007.
Sending him to prison Judge Tom Burgess told Granhof that when he leaves Northern Ireland to resume his life, "he should remember that he leaves behind a victim still carrying the scars, both physical and mental, for some time to come".
When Granhof finished his jail term in October he was brought into the detention centre.
An application for a judicial review of that decision was due to be heard at the High Court on Wednesday.
But a barrister for the UK Borders Agency confirmed the parties had resolved the case.
Granhof's barrister said his client, who is still subject to a direction that he should leave the UK, is scheduled to board a flight from Belfast to Spain on Thursday.
Lord Justice Girvan confirmed an order would be made to quash the decision to detain him.
Granhof declined to comment on the case outside the court.
© UTV News