From: Joe Hunt Date: Sun, 23 Sep 2012 07:23:56 +0000 (+0200) Subject: 0001792: BLOOMBERG added to Exchange Rate Providers and config fix, improvement X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=66f75a9c417b12203ffb11f6ee7d213180e2e100;p=textcart.git 0001792: BLOOMBERG added to Exchange Rate Providers and config fix, improvement --- diff --git a/gl/includes/db/gl_db_rates.inc b/gl/includes/db/gl_db_rates.inc index 3517140..9f0f101 100644 --- a/gl/includes/db/gl_db_rates.inc +++ b/gl/includes/db/gl_db_rates.inc @@ -194,7 +194,7 @@ function get_extern_rate($curr_b, $provider = 'ECB', $date) $val = trim(strstr($contents, $stmask)); $stmask = chr(10); $val = trim(strstr($val, $stmask)); - //$val = trim(strstr($val, $stmask, TRUE)); // Only works from PHP 5.3. Seems to work without it. + $val = trim(strtok($val, $stmask)); } return $val; } /* end function get_extern_rate */