Smokers in Glasgow who were trying to kick the habit have been mistakenly prescribed Viagra because of a computer error.

According to a report by the BBC, the NHS Greater Glasgow and Clyde said the error was caused by a computer "misreading" the prescription given to patients.

It said that a general practitioner selected an anti-smoking pill Zyban, but the computers selected sildenafil, the name for Viagra.

A spokesman for the NHS said, "At no time was patient care affected by this as all prescriptions are subject to stringent double checking."