NHS Greater Glasgow and Clyde said the error was due to a computer error, reports the BBC.
When GPs selected anti-smoking pill Zyban, computers selected sildenafil - the name for Viagra.
An NHS spokeswoman said: "At no time was patient care affected by this as all prescriptions are subject to stringent double checking."
____________________________________________
He's been smoke free for 2 weeks
