Update webpagetool.php

This commit is contained in:
Namhyeon Go 2018-10-21 04:03:54 +09:00 committed by GitHub
parent 43e73bd0d1
commit 29c86097b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -347,12 +347,14 @@ if(!function_exists("get_web_json")) {
if(!function_exists("get_web_dom")) {
function get_web_dom($url, $method="get", $data=array(), $proxy="", $ua="", $ct_out=45, $t_out=45) {
$result = new stdClass();
$result = false;
$response = get_web_page($url, $method, $data, $proxy, $ua, $ct_out, $t_out);
// load simple_html_dom
if($response['size'] > 0) {
$result = get_parsed_dom($response['content']);
if(loadHelper("webpagetool")) {
$result = get_parsed_dom($response['content']);
}
}
return $result;