From: Craig Andrews Date: Wed, 6 Jan 2010 22:13:09 +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=20144285ca610812abe09018ee208e12e38a966a;p=quix0rs-gnu-social.git The structure return by parse_url is an associative array, not an object. --- diff --git a/plugins/Minify/MinifyPlugin.php b/plugins/Minify/MinifyPlugin.php index 71fade19a5..718bfd1635 100644 --- a/plugins/Minify/MinifyPlugin.php +++ b/plugins/Minify/MinifyPlugin.php @@ -84,7 +84,7 @@ class MinifyPlugin extends Plugin function onStartScriptElement($action,&$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 = $this->minifyUrl($src); }