Index: money.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/money/money.module,v retrieving revision 1.1.4.14 diff -u -r1.1.4.14 money.module --- money.module 4 Mar 2009 11:59:37 -0000 1.1.4.14 +++ money.module 9 Apr 2009 07:01:48 -0000 @@ -176,8 +176,13 @@ $form['currencies']['#description'] .= ' '. t('The number between square brakets indicates the standard precision for each currency.'); } if (isset($widget['allowed_currencies']) && is_array($widget['allowed_currencies'])) { - $allowed_currencies = array_keys(array_filter($widget['allowed_currencies'])); - $allowed_currencies = array_combine($allowed_currencies, $allowed_currencies); + // Get filtered array. + $allowed_currencies = array_filter($widget['allowed_currencies']); + // If not empty, create array for the form element values. + if (!empty($allowed_currencies)) { + $allowed_currencies = array_keys($allowed_currencies); + $allowed_currencies = array_combine($allowed_currencies, $allowed_currencies); + } } else { $allowed_currencies = array();