Merged bugfixes upto [0000072] (version 2.0.3).
[fa-stable.git] / gl / manage / exchange_rates.php
index 669895b14863e539ada9ab9aff00c35775899694..5cd3ed217fff4a9c8348c679e7ce177be36f8b9e 100644 (file)
@@ -140,6 +140,9 @@ function display_rate_edit()
        if (isset($_POST['get_rate']))
        {
                $_POST['BuyRate'] = exrate_format(get_ecb_rate($_POST['curr_abrev']));
+               if ($_POST['BuyRate'] == 0) {
+                       display_error(_('This currency is not listed by ECB. Enter exchange rate manually.'));
+               }
                $Ajax->activate('BuyRate');
        }
        small_amount_row(_("Exchange Rate:"), 'BuyRate', null, '',