Download & Extend

Currency rate update in currency_api_load()

Project:Currency Exchange
Version:5.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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

#1

Title:Currency update» Currency rate update in currency_api_load()

#2

Priority:critical» normal
Status:active» postponed (maintainer needs more info)

Are you sure this is the case? Do you see a watchdog message on every cron run?

#3

Sorry, it was my mistake.

#4

Status:postponed (maintainer needs more info)» closed (fixed)
nobody click here