Skip to content

Commit b612bf1

Browse files
authored
Merge pull request #1157 from samsonasik/rem-isset-host
remove unneeded isset($options[hostname]) when next check is !empty($options[hostname])
2 parents e9a1d8a + ef10004 commit b612bf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,7 @@ protected function create(string $verb, string $from, $to, array $options = null
11731173
$options = array_merge((array)$this->currentOptions, (array)$options);
11741174

11751175
// Hostname limiting?
1176-
if (isset($options['hostname']) && ! empty($options['hostname']))
1176+
if (! empty($options['hostname']))
11771177
{
11781178
// @todo determine if there's a way to whitelist hosts?
11791179
if (strtolower($_SERVER['HTTP_HOST']) != strtolower($options['hostname']))

0 commit comments

Comments
 (0)