aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template/asset.php
diff options
context:
space:
mode:
authorVjacheslav Trushkin <cyberalien@gmail.com>2013-07-11 16:33:08 -0400
committerVjacheslav Trushkin <cyberalien@gmail.com>2013-07-11 16:33:08 -0400
commit63f1d99cc8971100fed9a74b5ca3e0850c4edcb8 (patch)
treed5e32e5ad52443db208021eab74757d198923b3e /phpBB/includes/template/asset.php
parent4f3ce669f64156d666fee75800648f04fb8e4300 (diff)
downloadforums-63f1d99cc8971100fed9a74b5ca3e0850c4edcb8.tar
forums-63f1d99cc8971100fed9a74b5ca3e0850c4edcb8.tar.gz
forums-63f1d99cc8971100fed9a74b5ca3e0850c4edcb8.tar.bz2
forums-63f1d99cc8971100fed9a74b5ca3e0850c4edcb8.tar.xz
forums-63f1d99cc8971100fed9a74b5ca3e0850c4edcb8.zip
[ticket/11647] Fix invalid variable name
PHPBB3-11647
Diffstat (limited to 'phpBB/includes/template/asset.php')
-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);