Commit 9cf77f4619be25570b4cffe7679e7bc518f1db58
1 parent
f8a74187
Exists in
master
and in
109 other branches
case when PROXY_HOST is undefined
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
php/classes/ProxyUtils.php
@@ -15,8 +15,10 @@ class ProxyUtils { | @@ -15,8 +15,10 @@ class ProxyUtils { | ||
15 | } | 15 | } |
16 | 16 | ||
17 | static function getStreamContextWithProxy() { | 17 | static function getStreamContextWithProxy() { |
18 | + if (!defined(PROXY_HOST)) | ||
19 | + return; | ||
18 | $proxy_host = PROXY_HOST; | 20 | $proxy_host = PROXY_HOST; |
19 | - if (!defined(PROXY_HOST) || empty($proxy_host)) | 21 | + if (empty($proxy_host)) |
20 | return; | 22 | return; |
21 | $options = array( | 23 | $options = array( |
22 | 'http' => array( | 24 | 'http' => array( |