What a stupid thing to say. Second-hand smoke is hazardous to your health. As far as I know, farts are not.
You may find it annoying, but it's no more dangerous than car exhaust, standing around a campfire or the dust that blows out of your ducts every fall when you turn the heater on for the first time.