A Paisley man claimed he was taking heroin to self-medicate his arthritis.
Gerard McTavish of Tannahill Road was found in the common close of a flat in Sandholes Road in possession of diamorphine, a Class A drug.
McTavish, 58, admitted he had £40 worth of heroin on March 31, last year, contrary to the Misuse of Drugs Act 1971, Section 5(2)