diff --git a/modules/currency/currency.inc.php b/modules/currency/currency.inc.php index 6e99bff7..099c68be 100644 --- a/modules/currency/currency.inc.php +++ b/modules/currency/currency.inc.php @@ -132,15 +132,16 @@ class currency // Fetch all active currencies $currencies = array(); $rs = $db->Execute(sqlSelect($db, "currency", "*", "status=1")); - if ($rs && $rs->RecordCount() > 0) + if ($rs) { while (!$rs->EOF) { $currencies[$rs->fields['id']] = $rs->fields; $rs->MoveNext(); } + + $rs->Close(); } - $rs->Close(); foreach ($currencies as $currFrom) {