A former nurse in Minnesota who admitted going online and encouraging two people to kill themselves is headed to jail.

William Melchert-Dinkel (MEL'-kurt DINK'-uhl) was ordered Wednesday to serve 178 days in jail. He was sentenced to nearly five years in prison, but he won't have to serve the prison term if he complies with conditions of probation that include the jail time.

Melchert-Dinkel must report to jail Oct. 24.

The 52-year-old was convicted in September of one count of assisting a suicide and one count of attempting to assist a suicide in the deaths of an English man and a Canadian woman. The convictions came after the Minnesota Supreme Court narrowed the state's assisted-suicide law and reversed earlier convictions.

Melchert-Dinkel told the judge he was sorry for his actions.