Project

General

Profile

Revision 8867b63b

ID8867b63b27a2deae6936acb205d99d676a32ba7a
Parent cbe9b085
Child 0e414cc1

Added by Andreas Kohlbecker 7 months ago

ref #8771 fixing bug in statistical value processing

View differences:

modules/cdm_dataportal/includes/common.inc
344 344
    $stat_vals_arr['TypicalUpperBoundary'] = '?';
345 345
  }
346 346

  
347
  if($stat_vals_arr['Average'] && $stat_vals_arr['TypicalUpperBoundary'] !== null && is_numeric($stat_vals_arr['TypicalUpperBoundary']) && $stat_vals_arr['TypicalLowerBoundary'] !== null && is_numeric($stat_vals_arr['TypicalLowerBoundary'] !== null)) {
347
  if(statistical_values_is_numeric($stat_vals_arr['Average']) && statistical_values_is_numeric($stat_vals_arr['TypicalUpperBoundary']) && statistical_values_is_numeric($stat_vals_arr['TypicalLowerBoundary'])) {
348 348
    statistical_values_adjust_significant_figures($stat_vals_arr['Average'], $stat_vals_arr['TypicalLowerBoundary'], $stat_vals_arr['TypicalUpperBoundary']);
349 349
  }
350 350

  
......
482 482
  return $stat_vals_arr[$key1] !== NULL && $stat_vals_arr[$key2] !== NULL && $stat_vals_arr[$key1]->_value == $stat_vals_arr[$key2]->_value && is_numeric($stat_vals_arr[$key1]->_value);
483 483
}
484 484

  
485
function statistical_values_is_numeric($stat_val){
486
  return $stat_val !== null && is_numeric($stat_val->_value);
487
}
488

  
485 489
/**
486 490
 * Creates min max markup to represent a min-average-max measure optionally with an error value.
487 491
 *

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)