]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
The structure return by parse_url is an associative array, not an object.
authorCraig Andrews <candrews@integralblue.com>
Wed, 6 Jan 2010 22:08:01 +0000 (17:08 -0500)
committerCraig Andrews <candrews@integralblue.com>
Wed, 6 Jan 2010 22:08:01 +0000 (17:08 -0500)
lib/htmloutputter.php

index 2091c6e2ca4d60fd4020f2ca91cfbcb09558c909..31660ce954982e365be8e68e05d179bda72cadbd 100644 (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;
             }