Leaving My Gay Best Friend

I have broken up with my boyfriend because my best friend is gay. My boyfriend wanted me to leave my best friend of seven years because he feared that our children would not be true Muslim fundamentalists if they were brought up around my gay friend.