From 6a502707e6a93dc53adad225e8aed2a147e120a1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 20 Sep 2024 16:12:30 +0800 Subject: [PATCH] 1 --- webapp/controller/OtherController.class.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/webapp/controller/OtherController.class.php b/webapp/controller/OtherController.class.php index 6131b131..d8c420e3 100644 --- a/webapp/controller/OtherController.class.php +++ b/webapp/controller/OtherController.class.php @@ -387,9 +387,10 @@ class OtherController extends BaseAuthedController { $isOpen = mt\MapMode::isOpen($modeMeta); if ($isOpen) { - if ($modeMeta['mapMode'] == \mt\MapMode::CIRCUIT_MODE && - myself()->_switchIsOpen('circuitMatch')){ - array_unshift($modeList,$temp); + if ($modeMeta['mapMode'] == \mt\MapMode::CIRCUIT_MODE){ + if (myself()->_switchIsOpen('circuitMatch')) { + array_unshift($modeList,$temp); + } }else{ array_push($modeList, $temp); }