From 5672adb004feb1323ba947fad554e6de31291258 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 19 May 2022 16:13:47 +0800 Subject: [PATCH] 1 --- webapp/controller/BaseController.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/controller/BaseController.class.php b/webapp/controller/BaseController.class.php index 6c6f542b..d0e2f035 100644 --- a/webapp/controller/BaseController.class.php +++ b/webapp/controller/BaseController.class.php @@ -54,7 +54,7 @@ class BaseController { public function _getZid() { $net = getReqVal('_net', ''); - $zid = $net && count($net) > 3 ? $net[2] : 3; + $zid = $net && strlen($net) > 3 ? $net[2] : 3; return ($zid >= 1 && $zid <= 4) ? $zid : 3; }