Fix to MEDIAN() function

This commit is contained in:
MarkBaker 2015-10-28 00:47:15 +00:00
parent 26cf4c0709
commit bb7b48d94c
1 changed files with 1 additions and 1 deletions

View File

@ -2329,7 +2329,7 @@ class Statistical
if ($mValueCount == floor($mValueCount)) { if ($mValueCount == floor($mValueCount)) {
$returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2; $returnValue = ($mArgs[$mValueCount--] + $mArgs[$mValueCount]) / 2;
} else { } else {
$mValueCount == floor($mValueCount); $mValueCount = floor($mValueCount);
$returnValue = $mArgs[$mValueCount]; $returnValue = $mArgs[$mValueCount];
} }
} }