diff --git a/system/Router/RouteCollection.php b/system/Router/RouteCollection.php index 517b236ae5e2..7128b4d3a4ad 100644 --- a/system/Router/RouteCollection.php +++ b/system/Router/RouteCollection.php @@ -1173,7 +1173,7 @@ protected function create(string $verb, string $from, $to, array $options = null $options = array_merge((array)$this->currentOptions, (array)$options); // Hostname limiting? - if (isset($options['hostname']) && ! empty($options['hostname'])) + if (! empty($options['hostname'])) { // @todo determine if there's a way to whitelist hosts? if (strtolower($_SERVER['HTTP_HOST']) != strtolower($options['hostname']))