mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-16 14:46:28 +02:00
[ticket/11647] Fix invalid variable name
PHPBB3-11647
This commit is contained in:
@ -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
|
||||
$this->components = parse_url('http:' . $url);
|
||||
if (isset($result['port']))
|
||||
if (isset($this->components['port']))
|
||||
{
|
||||
return;
|
||||
}
|
||||
unset($result['scheme']);
|
||||
$this->components = $result;
|
||||
unset($this->components['scheme']);
|
||||
return;
|
||||
}
|
||||
$this->components = parse_url($url);
|
||||
|
Reference in New Issue
Block a user