wip
This commit is contained in:
1 parent
2e9a98a4e4
commit
527280a670
2 files changed
+6
-1
No files matched your search
@@ -33,11 +33,14 @@ class HelperMoveingAveragePerformens
|
||||
// get first value in array and copy it to start if start is null
|
||||
$arr[0] = current(array_filter($arr));
|
||||
}
|
||||
$priv = 0;
|
||||
foreach ($arr as $key => $value) {
|
||||
if ($value) {
|
||||
$priv = $value;
|
||||
} else {
|
||||
$arr[$key] = $priv;
|
||||
if ($priv) {
|
||||
$arr[$key] = $priv;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user