Closed (fixed)
Project:
Currency
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2008 at 19:16 UTC
Updated:
8 Nov 2008 at 23:08 UTC
I think in currency_api.module
@619
$result = db_fetch_object(db_query("SELECT * FROM {currencyapi} WHERE currency_from = '%s' AND currency_to = '%s' AND timestamp > UNIX_TIMESTAMP( ) - %d", $currency_from, $currency_to, variable_get('currency_api_fetch', UPDATE_FREQUENCY)));
shuold be "timestamp < UNIX_TIMESTAMP( ) - %d" - less than instead of greater than.
If there is "timestamp > UNIX_TIMESTAMP( ) - %d", on every fnc. call will be true, and currency rate will be refreshed - not mind the config setup.
Comments
Comment #1
szato commentedComment #2
kbahey commentedAre you sure this is the case? Do you see a watchdog message on every cron run?
Comment #3
szato commentedSorry, it was my mistake.
Comment #4
szato commented