From 2c71f243e25ebac338b53c52fa50204a01587118 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Thu, 16 Jan 2020 14:13:10 +0900 Subject: [PATCH] Update webpagetool.php --- helper/webpagetool.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/helper/webpagetool.php b/helper/webpagetool.php index 752827b..216f60e 100644 --- a/helper/webpagetool.php +++ b/helper/webpagetool.php @@ -314,7 +314,11 @@ if(!check_function_exists("get_web_curl")) { } $options[CURLOPT_POST] = 1; - $options[CURLOPT_POSTFIELDS] = $data; + if(is_array($data)) { + $options[CURLOPT_POSTFIELDS] = http_build_query($data); + } else { + $options[CURLOPT_POSTFIELDS] = $data; + } } if($method == "get") {