A man's drug use has landed him in court despite his claims to police that he hadn't taken any recently.