The structure return by parse_url is an associative array, not an object.

This commit is contained in:
Craig Andrews 2010-01-06 17:08:01 -05:00
parent 208bab32b7
commit 541053e84b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}