From: Craig Andrews Date: Wed, 6 Jan 2010 22:08:01 +0000 (-0500) Subject: The structure return by parse_url is an associative array, not an object. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=541053e84b2754e0d2c8b735c624383b6a126122;p=quix0rs-gnu-social.git The structure return by parse_url is an associative array, not an object. --- diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 2091c6e2ca..31660ce954 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; }