aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/template')
-rw-r--r--phpBB/includes/template/asset.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/phpBB/includes/template/asset.php b/phpBB/includes/template/asset.php
index eae62f4db0..f3b18a102a 100644
--- a/phpBB/includes/template/asset.php
+++ b/phpBB/includes/template/asset.php
@@ -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);