Singer Chris Brown has had his probation reinstated and has been given a new sentence to perform 1,000 hours of community labour.
A prosecutor agreed to withdraw a request to rescind Brown's probation after he was involved in an alleged hit-and-run accident. The hit-and-run charge was dismissed earlier.
Brown did not speak during the hearing, other than to agree to the deal worked out in the judge's chambers while he waited in the courtroom.
He was ordered to perform labour such as highway work and graffiti removal.
Brown has been dealing with a series of legal problems since 2009, when he was arrested for assaulting then-girlfriend Rihanna and was first placed on probation.
He has had subsequent run-ins with the law, for assault and traffic accidents.