Post by traja » Mon Aug 10, 2009 1:49 pm

I found that updateCurrencies function, which updates currency rate automatically at every administrators' login, needs to be fix.

Around line 110, in /admin/model/localisation/currency.php

Code: Select all

$this->db->query("UPDATE " . DB_PREFIX . "currency SET value = '" . (float)$value . "', date_modified = NOW() WHERE code = '" . (int)$currency . "'");
You don't need (int) casting before $currency, because currency code is string.

You can just delete (int) or replace to (string)to fix.

Newbie

Posts

Joined
Thu Jul 23, 2009 12:50 pm

Post by Daniel » Mon Aug 10, 2009 6:46 pm

thansk for spotting this!

OpenCart®
Project Owner & Developer.


User avatar
Administrator

Posts

Joined
Fri Nov 03, 2006 6:57 pm
Who is online

Users browsing this forum: No registered users and 9 guests