Skip to content

Commit

Permalink
remove unneeded isset($options[hostname]) when next check is !empty($…
Browse files Browse the repository at this point in the history
…options[hostname]
  • Loading branch information
samsonasik committed Aug 10, 2018
1 parent 303aaab commit 935d763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']))
Expand Down

0 comments on commit 935d763

Please sign in to comment.