Currency rate update in currency_api_load()

odi - November 8, 2008 - 19:16
Project:Currency Exchange
Version:5.x-1.3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

odi - November 8, 2008 - 19:18
Title:Currency update» Currency rate update in currency_api_load()

#2

kbahey - November 8, 2008 - 19:54
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

odi - November 8, 2008 - 23:04

Sorry, it was my mistake.

#4

odi - November 8, 2008 - 23:08
Status:postponed (maintainer needs more info)» closed
 
 

Drupal is a registered trademark of Dries Buytaert.