Skip to content

Commit 73b4ddc

Browse files
authored
Fix undefined vars in spikekill class
1 parent 49fe858 commit 73b4ddc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/spikekill.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -237,47 +237,47 @@ private function initialize_spikekill() {
237237
/* set the correct value */
238238
if ($this->avgnan == '') {
239239
if (!isset($uavgnan)) {
240-
$this->avgnan = $davgnan;
240+
$this->avgnan = $this->davgnan;
241241
} else {
242242
$this->avgnan = $uavgnan;
243243
}
244244
}
245245

246246
if ($this->method == '') {
247247
if (!isset($umethod)) {
248-
$this->method = $dmethod;
248+
$this->method = $this->dmethod;
249249
} else {
250250
$this->method = $umethod;
251251
}
252252
}
253253

254254
if ($this->numspike == '') {
255255
if (!isset($unumspike)) {
256-
$this->numspike = $dnumspike;
256+
$this->numspike = $this->dnumspike;
257257
} else {
258258
$this->numspike = $unumspike;
259259
}
260260
}
261261

262262
if ($this->stddev == '') {
263263
if (!isset($ustddev)) {
264-
$this->stddev = $dstddev;
264+
$this->stddev = $this->dstddev;
265265
} else {
266266
$this->stddev = $ustddev;
267267
}
268268
}
269269

270270
if ($this->percent == '') {
271271
if (!isset($upercent)) {
272-
$this->percent = $dpercent;
272+
$this->percent = $this->dpercent;
273273
} else {
274274
$this->percent = $upercent;
275275
}
276276
}
277277

278278
if ($this->outliers == '') {
279279
if (!isset($uoutliers)) {
280-
$this->outliers = $doutliers;
280+
$this->outliers = $this->doutliers;
281281
} else {
282282
$this->outliers = $uoutliers;
283283
}

0 commit comments

Comments
 (0)