Commit 9cf77f4619be25570b4cffe7679e7bc518f1db58

Authored by Elena.Budnik
1 parent f8a74187

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 15 }
16 16  
17 17 static function getStreamContextWithProxy() {
  18 + if (!defined(PROXY_HOST))
  19 + return;
18 20 $proxy_host = PROXY_HOST;
19   - if (!defined(PROXY_HOST) || empty($proxy_host))
  21 + if (empty($proxy_host))
20 22 return;
21 23 $options = array(
22 24 'http' => array(
... ...