BURBANK, Calif.–Rapper Tone Loc–best known for the hit “Funky Cold Medina”–pleaded no contest today to felony charges and was ordered to complete a yearlong anger management program as part of his sentence.

The 45-year-old entertainer, whose real name is Anthony Smith, pleaded no contest to one count each of possession of an assault weapon and corporal injury to a spouse/cohabitant/child’s parent.

Under the “open plea,” there were no guarantees on what sentence Burbank Superior Court Judge Patrick Hegarty would hand down.

Smith was arrested June 18 by Burbank police for investigation of domestic violence and was released later the same day.

During the investigation, authorities discovered that Smith was in possession of a Colt AR-15 Sporter that was not registered, according to the District Attorney’s Office.

Hegarty also sentenced Smith to one day in county jail and three years of probation, which will include 30 days of community service.