Nicole Richie has been admitted to a Los Angeles hospital and is being treated for pneumonia. Her representative says she's doing well.

Publicist Nicole Perna said Wednesday the 28-year-old actress checked herself into Cedars-Sinai Medical Center.

Richie was in a Los Angeles courtroom earlier this week after asking for a restraining order against two celebrity photographers.

A judge granted that request.

Richie costarred with Paris Hilton on the television show 'The Simple Life' and is the daughter of singer Lionel Richie. She has since become a fashion and jewellery designer and occasional actress.

Richie gave birth to a son, Sparrow James Midnight Madden, in September. She and her partner, rocker Joel Madden, have a daughter, Harlow, who turns two in January.