HELENA, Mont. (AP) — Montana has appealed a judge's ruling that blocked parts of a medical marijuana law passed by the 2011 Legislature.

The law was aimed at reining in the state pot industry that included providers with large greenhouses and traveling clinics that helped hundreds of people obtain medical marijuana cards.

District Judge James Reynolds has twice blocked provisions of the law that prohibit advertisement and commercial sale of medical marijuana as well as provisions that limited providers to three patients and called for reviewing the practices of doctors who had recommended medical marijuana for 25 or more patients within a 12-month period.

None of the four challenged provisions of the 2011 law have taken effect because of injunctions issued by Reynolds in 2011 and again this year.