if ($updateData['rate_factor'] == '') { $currency->setAttribute('rate_factor', 0); } } $currency->sync(); } } $db->commit(); $error = array('code' => 0, 'description' => ezpI18n::tr('kernel/shop', 'Changes were stored successfully.')); } else { if ($module->isCurrentAction('UpdateAutoprices')) { $error = eZShopFunctions::updateAutoprices(); eZContentCacheManager::clearAllContentCache(); } else { if ($module->isCurrentAction('UpdateAutoRates')) { $error = eZShopFunctions::updateAutoRates(); } } } } } if ($error !== false) { if ($error['code'] != 0) { $error['style'] = 'message-error'; } else { $error['style'] = 'message-feedback'; } } switch (eZPreferences::value('currencies_list_limit')) { case '2': $limit = 25;