Removed related report class when company does not use dimensions.
[fa-stable.git] / gl / manage / currencies.php
index c040e173fe68b1a92d8b0a5e98c2bbb3967c158b..b14b79fde4c4e7a4114a73e008a51b93fd107812 100644 (file)
@@ -101,7 +101,7 @@ function check_can_delete()
                return false;
        }
 
-       if (key_in_foreign_table($curr, 'company', 'curr_default', true))               
+       if ($curr == get_company_pref('curr_default'))
        {
                display_error(_("Cannot delete this currency, because the company preferences uses this currency."));
                return false;