Skip to content

Commit

Permalink
Fix undefined vars in spikekill class
Browse files Browse the repository at this point in the history
  • Loading branch information
cigamit authored Feb 22, 2025
1 parent 49fe858 commit 73b4ddc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/spikekill.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,47 +237,47 @@ private function initialize_spikekill() {
/* set the correct value */
if ($this->avgnan == '') {
if (!isset($uavgnan)) {
$this->avgnan = $davgnan;
$this->avgnan = $this->davgnan;
} else {
$this->avgnan = $uavgnan;
}
}

if ($this->method == '') {
if (!isset($umethod)) {
$this->method = $dmethod;
$this->method = $this->dmethod;
} else {
$this->method = $umethod;
}
}

if ($this->numspike == '') {
if (!isset($unumspike)) {
$this->numspike = $dnumspike;
$this->numspike = $this->dnumspike;
} else {
$this->numspike = $unumspike;
}
}

if ($this->stddev == '') {
if (!isset($ustddev)) {
$this->stddev = $dstddev;
$this->stddev = $this->dstddev;
} else {
$this->stddev = $ustddev;
}
}

if ($this->percent == '') {
if (!isset($upercent)) {
$this->percent = $dpercent;
$this->percent = $this->dpercent;
} else {
$this->percent = $upercent;
}
}

if ($this->outliers == '') {
if (!isset($uoutliers)) {
$this->outliers = $doutliers;
$this->outliers = $this->doutliers;
} else {
$this->outliers = $uoutliers;
}
Expand Down

0 comments on commit 73b4ddc

Please sign in to comment.