A man caught with cannabis two days before Christmas has appeared in court