}
function rate($cur, $when)
{
+ $when === false ? date('Y-m-d H:i:s') : $when;
$this->loadRates(); // check if we have an rates.
$r = DB_DataObject::factory('core_curr_rate');
{
- $fr =
+ $fr = $this->rate($from, $when)
//echo '<PRE>';print_R($this->rates);
$base = (1.0 / $this->rates[$from]) * $val;