diff options
author | Craig Andrews <candrews@integralblue.com> | 2010-01-06 17:08:01 -0500 |
---|---|---|
committer | Craig Andrews <candrews@integralblue.com> | 2010-01-06 17:08:01 -0500 |
commit | 541053e84b2754e0d2c8b735c624383b6a126122 (patch) | |
tree | f28d46daac00275cf94e9186e67bdde3391e1ee7 | |
parent | 208bab32b7f9784701c538217d0c1c2779a22146 (diff) |
The structure return by parse_url is an associative array, not an object.
-rw-r--r-- | lib/htmloutputter.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 2091c6e2c..31660ce95 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -352,7 +352,7 @@ class HTMLOutputter extends XMLOutputter { if(Event::handle('StartScriptElement', array($this,&$src,&$type))) { $url = parse_url($src); - if( empty($url->scheme) && empty($url->host) && empty($url->query) && empty($url->fragment)) + if( empty($url['scheme']) && empty($url['host']) && empty($url['query']) && empty($url['fragment'])) { $src = common_path($src) . '?version=' . STATUSNET_VERSION; } |