I am using beta3 version.

To eliminate a bunch of php notices, in uc_store.module add one line ($format = '';) to the function uc_currency_format as follows:

function uc_currency_format($value, $sign = TRUE, $thou = TRUE, $dec = NULL) {
  if (variable_get('uc_currency_prec', 2) > 0) {
    if (abs($value) < '.'. str_repeat('0', variable_get('uc_currency_prec', 2) - 1) .'1') {
      $value = 0;
    }
  }

  $format = ''; // Add this line here. Thanks.
  if ($value < 0) {
    $value = abs($value);
    $format = '-';
  }
  ...

Comments

Island Usurper’s picture

Priority: Normal » Minor
Status: Needs review » Fixed

Thanks. Committed.

If you want, try to round up all of the other places that are generating notices and we can get rid of them all at once.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.