Fixed Undefined variable: site_ip in file.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 9 Oct 2017 13:20:35 +0000 (15:20 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 9 Oct 2017 13:20:35 +0000 (15:20 +0200)
gl/includes/db/gl_db_rates.inc

index bea004219d0413ba80c0f4f29d80899c7e5d5d1a..9d3c47ca0fd5978e6633aceb23a569ef1951d8f0 100644 (file)
@@ -175,7 +175,8 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date)
                curl_close($ch);
                        // due to resolver bug in some curl versions (e.g. 7.15.5) 
                        // try again for constant IP.
-                  $site=$site_ip;
+                       if (isset($site_ip))
+                               $site=$site_ip;
           } while( ($contents == '') && $retry--);
           
        } else {