projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Changed supplier payment to accept amount in foreign currency instead of exchange...
[fa-stable.git]
/
gl
/
includes
/
db
/
gl_db_rates.inc
diff --git
a/gl/includes/db/gl_db_rates.inc
b/gl/includes/db/gl_db_rates.inc
index 351714036f251a456c62a7d6fc8c4d7c61669c98..9f0f101d12d742704a46f983591c4fb53a6705a0 100644
(file)
--- 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($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 */
}
return $val;
} /* end function get_extern_rate */