diff --git a/phpthumb.functions.php b/phpthumb.functions.php index bcad252..98615d1 100644 --- a/phpthumb.functions.php +++ b/phpthumb.functions.php @@ -706,7 +706,7 @@ public static function CleanUpURLencoding($url, $queryseperator='&') { return $url; } $parsed_url = self::ParseURLbetter($url); - $pathelements = explode('/', $parsed_url['path']); + $pathelements = explode('/', (string)$parsed_url['path']); $CleanPathElements = array(); $TranslationMatrix = array(' '=>'%20'); foreach ($pathelements as $key => $pathelement) { @@ -718,7 +718,7 @@ public static function CleanUpURLencoding($url, $queryseperator='&') { } } - $queries = explode($queryseperator, $parsed_url['query']); + $queries = explode($queryseperator, (string)$parsed_url['query']); $CleanQueries = array(); foreach ($queries as $key => $query) { @list($param, $value) = explode('=', $query);