0001792: BLOOMBERG added to Exchange Rate Providers and config fix, improvement
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 23 Sep 2012 07:23:56 +0000 (09:23 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 23 Sep 2012 07:23:56 +0000 (09:23 +0200)
gl/includes/db/gl_db_rates.inc

index 351714036f251a456c62a7d6fc8c4d7c61669c98..9f0f101d12d742704a46f983591c4fb53a6705a0 100644 (file)
@@ -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 */