currencies); $aCurrencies = array(); foreach($oCurrencies->currencies as $sKey => $value) { $aCurrencies[] = array('id' => $sKey, 'text' => $value['title']); } if (count($aCurrencies) >= 2) { $currency_block = TRUE; $currency_get_parameters = oos_get_all_get_parameters(array('language', 'currency')); $currency_all_get_parameters = oos_remove_trailing($currency_get_parameters); $smarty->assign('currencies_contents', $aCurrencies); $smarty->assign('currency_get_parameters', $currency_all_get_parameters); } else { $blockstable = $oostable['block']; $dbconn->Execute("UPDATE " . $blockstable . " SET block_status = 0 WHERE block_file = 'currencies'"); } } $smarty->assign('currency_block', $currency_block);