From: Tim Düsterhus Date: Wed, 1 Jun 2022 08:50:18 +0000 (+0200) Subject: Simplify `isset()` check in ControllerMap::resolveCustomController() X-Git-Tag: 6.0.0_Alpha_1~1225 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4d99b91eea0f35bfcd7505cf651419a2714474c0;p=GitHub%2FWoltLab%2FWCF.git Simplify `isset()` check in ControllerMap::resolveCustomController() The first test 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 bb78285b5c..d76adf3109 100644 --- a/wcfsetup/install/files/lib/system/request/ControllerMap.class.php +++ b/wcfsetup/install/files/lib/system/request/ControllerMap.class.php @@ -145,10 +145,7 @@ class ControllerMap extends SingletonFactory $application = $this->applicationOverrides['lookup'][$application][$controller]; } - if ( - isset($this->customUrls['lookup'][$application]) - && isset($this->customUrls['lookup'][$application][$controller]) - ) { + if (isset($this->customUrls['lookup'][$application][$controller])) { $data = $this->customUrls['lookup'][$application][$controller]; if (\preg_match('~^__WCF_CMS__(?P\d+)-(?P\d+)$~', $data, $matches)) { return [