Code: Select all
PHP Warning: A non-numeric value encountered in /vqmod/vqcache/vq2-system_library_currency.php on line 119
Code: Select all
public function convert($value, $from, $to) {
if (isset($this->currencies[$from])) {
$from = $this->currencies[$from]['value'];
} else {
$from = 1;
}
if (isset($this->currencies[$to])) {
$to = $this->currencies[$to]['value'];
} else {
$to = 1;
}
return $value * ($to / $from);
}