diff --git a/_function.php b/_function.php index 5b6f723..914c81d 100644 --- a/_function.php +++ b/_function.php @@ -12,9 +12,8 @@ public function WEBParsing($url, $cookie=NULL, $headershow=TRUE, $postparam=NULL, $otherheader=NULL) { $uri = parse_url($url); - $paramType = strtoupper($paramType); - if (!$uri['port']) $uri['port'] = 80; - if (!$uri['path']) $uri['path'] = "/"; + if (!isset($uri['port'])) $uri['port'] = 80; + if (!isset($uri['path'])) $uri['path'] = "/"; $ch = curl_init(); $opts = array(CURLOPT_RETURNTRANSFER => true, CURLOPT_URL => $url,