Earlier this week, Nicole was in a Los Angeles courtroom where a judge granted her and longtime beau Joel Madden a temporary restraining order barring two celebrity photographers from coming close to her or her children.