Adrienne Maloof and Paul Nassif put their ugly custody war to rest ... at least for the next 90 days.

Maloof will be the primary caretaker while Nassif will get to see their three sons (Gavin, 9, and 6-year-old twins Christian and Colin) every other weekend, overnight included, sources told TMZ

Instead of arguing in court on Oct. 8, they decided on a settlement they were both content with. 

The agreement will be examined again in 90 days when a permanent schedule will likely be implemented. 

Since Nassif was accused of child abuse, the seperated couple have decided to have full-time security watch over their children. 

Nassif was accused of choking and spanking one of his sons as well as kicking the family dog. 

He is also being investigated by the L.A. Department of Children & Family Services over physical abuse allegations regarding his children, according to court documents obtained by RadarOnline.

The couples' marriage counselor made a sworn declaration stating, ""All three children appeared anxious and fearful. They are reluctant to share the details of what happened..."

On Sept. 21, Nassif posted the following statement on his official Facebook fan page: "It continues to amaze me how so much of the hoopla surrounding a reality show is in reality, unreal -- including the absurdity of the latest utterly false accusations by Adrienne's attorney which we will vigorously address in court. It is becoming a bit of a circus isn't it? The phrase 'all is fair in love and war' must have been penned by a divorce attorney. I'm very disappointed in the ridiculous tactics that are being used that potentially compromise my relationship with my children. As I've said throughout this ordeal, the most important thing is the health, happiness and stability of my kids. I hate to see others using them as pawns. I'm going to stay utterly focused on their well-being and the knowledge they need equal time with both of their parents both of whom love them very much. I'm sure all will be fine and when all the emotion of the moment dies down, Adrienne and I will be terrific co-parents."