From 2d13cd34d54a2ecdadd41f590ed4f23feaa44c8d Mon Sep 17 00:00:00 2001 From: hakasenyang Date: Mon, 14 Nov 2016 21:09:51 +0900 Subject: [PATCH] Bug fixed thanks for wazirsoft :) --- _function.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/_function.php b/_function.php index ac01bc5..ed880af 100644 --- a/_function.php +++ b/_function.php @@ -17,9 +17,8 @@ public function WEBParsing($url, $cookie = NULL, $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,