Project

General

Profile

« Previous | Next » 

Revision 7f36e33a

Added by Andreas Kohlbecker about 4 years ago

fix #8828 removing empty brackets from statistical values in QuantitativeData and cleaning up

View differences:

modules/cdm_dataportal/includes/common.inc
405 405
    // this trivial case needs to be displayed a simpler way
406 406
    $min_max_markup = str_replace($xbar_equals, '' , $other_vals_array['Average']);
407 407
    unset($other_vals_array['Average']);
408
  }
409
  if(count($other_vals_array)){
408 410
    $min_max_markup .= ' [' . join(';', $other_vals_array) . ']';
409
  } else {
410
    if(count($other_vals_array)){
411
      $min_max_markup .= ' [' . join(';', $other_vals_array) . ']';
412
    }
413 411
  }
414 412

  
415 413
  return $min_max_markup . ($unit ? ' ' . $unit : '');
416 414
}
417 415

  
418 416
/**
419
 * Calculates the required precision for the taget value to be significantly different from min and may and rounds it.
417
 * Calculates the required precision for the target value to be significantly different from min and may and rounds it.
420 418
 *
421 419
 * @param $target
422 420
 *    The statistical value to be rounded to the least significant precision

Also available in: Unified diff