[ticket/11647] Fix invalid variable name

PHPBB3-11647
This commit is contained in:
Vjacheslav Trushkin 2013-07-11 16:33:08 -04:00
parent 4f3ce669f6
commit 63f1d99cc8

View file

@ -40,12 +40,11 @@ class phpbb_template_asset
{ {
// Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it // Workaround for PHP 5.4.6 and older bug #62844 - add fake scheme and then remove it
$this->components = parse_url('http:' . $url); $this->components = parse_url('http:' . $url);
if (isset($result['port'])) if (isset($this->components['port']))
{ {
return; return;
} }
unset($result['scheme']); unset($this->components['scheme']);
$this->components = $result;
return; return;
} }
$this->components = parse_url($url); $this->components = parse_url($url);