Switching from a continuous to a discontinuous phase transition under quenched disorder | Synapse