An airline back-siphoned? Sounds like you needed one or more of these:
Aquarium Aip Pumps & Plumbing: Hagen Precision Check Valve
You should always have a check valve in your airline to prevent such things. NOT having one can create lots of problems, as you just found out. Not only floods, but saltwater doesn't mix well with the electricty used to power air pumps...