// how often do we need to know this..?
// let's assume we do it once a week..
$x = DB_DataObject::Factory('core_curr_rate');
- $x->whereAdd('from_date > NOW() - INTERVAL 7 DAY');
+ $x->whereAdd('to_date > NOW()');
if ($x->count()) {
+ // got some data for beyond today..
return;
}
+
if (!empty($this->rates)) {
return true;
}