Commit cae9197f authored by Alex Ne's avatar Alex Ne

fix

parent 23612e1f
...@@ -98,6 +98,7 @@ class X_HTTP_ProxyList ...@@ -98,6 +98,7 @@ class X_HTTP_ProxyList
while (!is_array($data)) while (!is_array($data))
{ {
$data = unserialize(file_get_contents($this->data_dir."proxyList.txt")); $data = unserialize(file_get_contents($this->data_dir."proxyList.txt"));
if($data == false) $data = [];
sleep(1); sleep(1);
} }
return $data; return $data;
...@@ -117,6 +118,7 @@ class X_HTTP_ProxyList ...@@ -117,6 +118,7 @@ class X_HTTP_ProxyList
while (!is_array($data)) while (!is_array($data))
{ {
$data = unserialize(file_get_contents($this->data_dir."proxyList-fail.txt")); $data = unserialize(file_get_contents($this->data_dir."proxyList-fail.txt"));
if($data == false) $data = [];
sleep(1); sleep(1);
} }
return $data; return $data;
...@@ -136,6 +138,7 @@ class X_HTTP_ProxyList ...@@ -136,6 +138,7 @@ class X_HTTP_ProxyList
while (!is_array($data)) while (!is_array($data))
{ {
$data = unserialize(file_get_contents($this->data_dir."proxyList-reject.txt")); $data = unserialize(file_get_contents($this->data_dir."proxyList-reject.txt"));
if($data == false) $data = [];
sleep(1); sleep(1);
} }
return $data; return $data;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment