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; }