A 29-year-old Maghera man has been given a four-month jail sentence, suspended for 18 months, at Magherafelt Magistrates Court on drug charges.