LOS ANGELES (AP) -- A former boyfriend of singer Britney Spears has pleaded no contest to leaving the scene of an accident that injured a man who was trying to serve him with a restraining order.

Adnan Ghalib, 37, entered the plea Friday in Van Nuys Superior Court.

Prosecutors say the victim was trying to serve Ghalib a temporary restraining order obtained by Spears' father at Ghalib's Encino apartment complex last February when Ghalib drove his car toward the process server. The man jumped on the car's hood and then fell off, breaking his wrist and sustaining other injuries. Ghalib then drove away.

In exchange for the plea, prosecutors say two other felony counts will be dismissed when Ghalib is sentenced next month.

He faces up to a year in county jail.