Unfortunately we see wiring like this all too often, causing watering systems to behave erratically or not at all.
We fixed this up pretty quickly though with some quality waterproof connectors.