diff --git a/data.php b/data.php index 2e4d9ffc..7828f9fe 100644 --- a/data.php +++ b/data.php @@ -253,6 +253,10 @@ } function alignTimeArrays(&$times1, &$times2) { + if(count($times1) == 0 || count($times2) < 2) { + return; + } + $max = max(array_merge(array_keys($times1), array_keys($times2))); $min = min(array_merge(array_keys($times1), array_keys($times2)));