Jennifer Lopez and Marc Anthony

The couple called it quits in July after seven years of marriage, but a source told Us that Lopez, 42, nearly left Anthony, 43, two years ago -- all because of Anthony's fling with a flight attendant. "Jennifer was going to leave him then, but Marc begged her to stay," the insider said.