Page MenuHomestyx hydra

No OneTemporary

diff --git a/src/applications/fact/chart/PhabricatorHigherOrderChartFunction.php b/src/applications/fact/chart/PhabricatorHigherOrderChartFunction.php
index 519e602a80..aef8f948be 100644
--- a/src/applications/fact/chart/PhabricatorHigherOrderChartFunction.php
+++ b/src/applications/fact/chart/PhabricatorHigherOrderChartFunction.php
@@ -1,56 +1,60 @@
<?php
abstract class PhabricatorHigherOrderChartFunction
extends PhabricatorChartFunction {
public function getDomain() {
$minv = array();
$maxv = array();
foreach ($this->getFunctionArguments() as $function) {
$domain = $function->getDomain();
if ($domain !== null) {
list($min, $max) = $domain;
- $minv[] = $min;
- $maxv[] = $max;
+ if ($min !== null) {
+ $minv[] = $min;
+ }
+ if ($max !== null) {
+ $maxv[] = $max;
+ }
}
}
if (!$minv && !$maxv) {
return null;
}
$min = null;
$max = null;
if ($minv) {
$min = min($minv);
}
if ($maxv) {
$max = max($maxv);
}
return array($min, $max);
}
public function newInputValues(PhabricatorChartDataQuery $query) {
$map = array();
foreach ($this->getFunctionArguments() as $function) {
$xv = $function->newInputValues($query);
if ($xv !== null) {
foreach ($xv as $x) {
$map[$x] = true;
}
}
}
if (!$map) {
return null;
}
ksort($map);
return array_keys($map);
}
}

File Metadata

Mime Type
text/x-diff
Expires
Thu, Jul 3, 2:33 PM (4 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
165890
Default Alt Text
(1 KB)

Event Timeline