Skip to content

Commit

Permalink
Merge pull request #2 from FallDi/master
Browse files Browse the repository at this point in the history
Fix PHP Notice:  Undefined index: path...
  • Loading branch information
boogie committed Jul 16, 2015
2 parents efddc66 + 3ef5a19 commit 115a012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Escher.php
Expand Up @@ -135,7 +135,7 @@ private function parseUrl($url)
$urlParts = parse_url($url);
$defaultPort = $urlParts['scheme'] === 'http' ? 80 : 443;
$host = $urlParts['host'] . (isset($urlParts['port']) && $urlParts['port'] != $defaultPort ? ':' . $urlParts['port'] : '');
$path = $urlParts['path'];
$path = isset($urlParts['path']) ? $urlParts['path'] : null;
$query = isset($urlParts['query']) ? $urlParts['query'] : '';
return array($host, $path, $query);
}
Expand Down

0 comments on commit 115a012

Please sign in to comment.