From: Tim Düsterhus Date: Wed, 1 Jun 2022 07:47:05 +0000 (+0200) Subject: Simplify `isset()` check in ControllerMap::isDefaultController() X-Git-Tag: 6.0.0_Alpha_1~1226 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=85a2883dc13228e8d6921c135a9c58c18299303a;p=GitHub%2FWoltLab%2FWCF.git Simplify `isset()` check in ControllerMap::isDefaultController() The first parameter was a prefix of the second, thus it is implicitly checked. --- diff --git a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php index 95e5d3455d..bb78285b5c 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -302,7 +302,7 @@ class ControllerMap extends SingletonFactory public function isDefaultController($application, $controller) { // lookup custom urls first - if (isset($this->customUrls['lookup'][$application], $this->customUrls['lookup'][$application][$controller])) { + if (isset($this->customUrls['lookup'][$application][$controller])) { $controller = $this->customUrls['lookup'][$application][$controller]; if (\preg_match('~^(?P__WCF_CMS__\d+)(?:-(?P\d+))?$~', $controller, $matches)) { if (