diff --git a/webapp/controller/CircuitController.class.php b/webapp/controller/CircuitController.class.php index 41c8778f..da79b128 100644 --- a/webapp/controller/CircuitController.class.php +++ b/webapp/controller/CircuitController.class.php @@ -21,13 +21,12 @@ class CircuitController extends BaseAuthedController { { parent::_handlePre(); if (!myself()->_switchIsOpen('circuitMatch')) { - $this->_rspErr(1, 'current stage Have not yet started'); - return; + $this->_rspErr(1, 'server error1'); + die; } - if (!(count(CIRCUIT_MATCH_SERVER_LIST) <= 0 && - in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST))) { - $this->_rspErr(1, 'current stage Have not yet started'); - return; + if (!(count(CIRCUIT_MATCH_SERVER_LIST) <= 0 && in_array(myself()->_getZid(), CIRCUIT_MATCH_SERVER_LIST))) { + $this->_rspErr(1, 'server error2'); + die; } }