Skip to content

Commit fd5e71e

Browse files
author
vogelor
committed
fixed a wrong named variable
1 parent def897a commit fd5e71e

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

server/mods-available/monitor_core_module.inc.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ private function _monitorHDQuota() {
136136
$app->dbmaster->query($sql);
137137

138138
/* The new data is written, now we can delete the old one */
139-
$this->_delOldRecords($type, $res['server_id']);
139+
$this->_delOldRecords($res['type'], $res['server_id']);
140140
}
141141

142142
private function _monitorServer() {
@@ -161,7 +161,7 @@ private function _monitorServer() {
161161
$app->dbmaster->query($sql);
162162

163163
/* The new data is written, now we can delete the old one */
164-
$this->_delOldRecords($type, $res['server_id']);
164+
$this->_delOldRecords($res['type'], $res['server_id']);
165165
}
166166

167167
private function _monitorOsVer() {
@@ -186,7 +186,7 @@ private function _monitorOsVer() {
186186
$app->dbmaster->query($sql);
187187

188188
/* The new data is written, now we can delete the old one */
189-
$this->_delOldRecords($type, $res['server_id']);
189+
$this->_delOldRecords($res['type'], $res['server_id']);
190190
}
191191

192192
private function _monitorIspcVer() {
@@ -211,7 +211,7 @@ private function _monitorIspcVer() {
211211
$app->dbmaster->query($sql);
212212

213213
/* The new data is written, now we can delete the old one */
214-
$this->_delOldRecords($type, $res['server_id']);
214+
$this->_delOldRecords($res['type'], $res['server_id']);
215215
}
216216

217217
private function _monitorDiskUsage() {
@@ -236,7 +236,7 @@ private function _monitorDiskUsage() {
236236
$app->dbmaster->query($sql);
237237

238238
/* The new data is written, now we can delete the old one */
239-
$this->_delOldRecords($type, $res['server_id']);
239+
$this->_delOldRecords($res['type'], $res['server_id']);
240240
}
241241

242242
private function _monitorMemUsage() {
@@ -260,7 +260,7 @@ private function _monitorMemUsage() {
260260
$app->dbmaster->query($sql);
261261

262262
/* The new data is written, now we can delete the old one */
263-
$this->_delOldRecords($type, $res['server_id']);
263+
$this->_delOldRecords($res['type'], $res['server_id']);
264264
}
265265

266266
private function _monitorCpu() {
@@ -284,7 +284,7 @@ private function _monitorCpu() {
284284
$app->dbmaster->query($sql);
285285

286286
/* The new data is written, now we can delete the old one */
287-
$this->_delOldRecords($type, $res['server_id']);
287+
$this->_delOldRecords($res['type'], $res['server_id']);
288288
}
289289

290290
private function _monitorServices() {
@@ -309,7 +309,7 @@ private function _monitorServices() {
309309
$app->dbmaster->query($sql);
310310

311311
/* The new data is written, now we can delete the old one */
312-
$this->_delOldRecords($type, $res['server_id']);
312+
$this->_delOldRecords($res['type'], $res['server_id']);
313313
}
314314

315315
private function _monitorOpenVzHost() {
@@ -334,7 +334,7 @@ private function _monitorOpenVzHost() {
334334
$app->dbmaster->query($sql);
335335

336336
/* The new data is written, now we can delete the old one */
337-
$this->_delOldRecords($type, $res['server_id']);
337+
$this->_delOldRecords($res['type'], $res['server_id']);
338338
}
339339

340340
private function _monitorOpenVzUserBeancounter() {
@@ -359,7 +359,7 @@ private function _monitorOpenVzUserBeancounter() {
359359
$app->dbmaster->query($sql);
360360

361361
/* The new data is written, now we can delete the old one */
362-
$this->_delOldRecords($type, $res['server_id']);
362+
$this->_delOldRecords($res['type'], $res['server_id']);
363363
}
364364

365365
private function _monitorSystemUpdate() {
@@ -394,7 +394,7 @@ private function _monitorSystemUpdate() {
394394
$app->dbmaster->query($sql);
395395

396396
/* The new data is written, now we can delete the old one */
397-
$this->_delOldRecords($type, $res['server_id']);
397+
$this->_delOldRecords($res['type'], $res['server_id']);
398398
}
399399

400400
private function _monitorMailQueue() {
@@ -419,7 +419,7 @@ private function _monitorMailQueue() {
419419
$app->dbmaster->query($sql);
420420

421421
/* The new data is written, now we can delete the old one */
422-
$this->_delOldRecords($type, $res['server_id']);
422+
$this->_delOldRecords($res['type'], $res['server_id']);
423423
}
424424

425425
private function _monitorRaid() {
@@ -444,7 +444,7 @@ private function _monitorRaid() {
444444
$app->dbmaster->query($sql);
445445

446446
/* The new data is written, now we can delete the old one */
447-
$this->_delOldRecords($type, $res['server_id']);
447+
$this->_delOldRecords($res['type'], $res['server_id']);
448448
}
449449

450450
private function _monitorRkHunter() {
@@ -479,7 +479,7 @@ private function _monitorRkHunter() {
479479
$app->dbmaster->query($sql);
480480

481481
/* The new data is written, now we can delete the old one */
482-
$this->_delOldRecords($type, $res['server_id']);
482+
$this->_delOldRecords($res['type'], $res['server_id']);
483483
}
484484

485485
private function _monitorFail2ban() {
@@ -504,7 +504,7 @@ private function _monitorFail2ban() {
504504
$app->dbmaster->query($sql);
505505

506506
/* The new data is written, now we can delete the old one */
507-
$this->_delOldRecords($type, $res['server_id']);
507+
$this->_delOldRecords($res['type'], $res['server_id']);
508508
}
509509

510510
private function _monitorSysLog() {
@@ -529,7 +529,7 @@ private function _monitorSysLog() {
529529
$app->dbmaster->query($sql);
530530

531531
/* The new data is written, now we can delete the old one */
532-
$this->_delOldRecords($type, $res['server_id']);
532+
$this->_delOldRecords($res['type'], $res['server_id']);
533533
}
534534

535535
private function _monitorMailLog() {
@@ -554,7 +554,7 @@ private function _monitorMailLog() {
554554
$app->dbmaster->query($sql);
555555

556556
/* The new data is written, now we can delete the old one */
557-
$this->_delOldRecords($type, $res['server_id']);
557+
$this->_delOldRecords($res['type'], $res['server_id']);
558558
}
559559

560560
private function _monitorMailWarnLog() {
@@ -579,7 +579,7 @@ private function _monitorMailWarnLog() {
579579
$app->dbmaster->query($sql);
580580

581581
/* The new data is written, now we can delete the old one */
582-
$this->_delOldRecords($type, $res['server_id']);
582+
$this->_delOldRecords($res['type'], $res['server_id']);
583583
}
584584

585585
private function _monitorMailErrLog() {
@@ -604,7 +604,7 @@ private function _monitorMailErrLog() {
604604
$app->dbmaster->query($sql);
605605

606606
/* The new data is written, now we can delete the old one */
607-
$this->_delOldRecords($type, $res['server_id']);
607+
$this->_delOldRecords($res['type'], $res['server_id']);
608608
}
609609

610610
private function _monitorMessagesLog() {
@@ -629,7 +629,7 @@ private function _monitorMessagesLog() {
629629
$app->dbmaster->query($sql);
630630

631631
/* The new data is written, now we can delete the old one */
632-
$this->_delOldRecords($type, $res['server_id']);
632+
$this->_delOldRecords($res['type'], $res['server_id']);
633633
}
634634

635635
private function _monitorISPCCronLog() {
@@ -654,7 +654,7 @@ private function _monitorISPCCronLog() {
654654
$app->dbmaster->query($sql);
655655

656656
/* The new data is written, now we can delete the old one */
657-
$this->_delOldRecords($type, $res['server_id']);
657+
$this->_delOldRecords($res['type'], $res['server_id']);
658658
}
659659

660660
private function _monitorFreshClamLog() {
@@ -679,7 +679,7 @@ private function _monitorFreshClamLog() {
679679
$app->dbmaster->query($sql);
680680

681681
/* The new data is written, now we can delete the old one */
682-
$this->_delOldRecords($type, $res['server_id']);
682+
$this->_delOldRecords($res['type'], $res['server_id']);
683683
}
684684

685685
private function _monitorClamAvLog() {
@@ -704,7 +704,7 @@ private function _monitorClamAvLog() {
704704
$app->dbmaster->query($sql);
705705

706706
/* The new data is written, now we can delete the old one */
707-
$this->_delOldRecords($type, $res['server_id']);
707+
$this->_delOldRecords($res['type'], $res['server_id']);
708708
}
709709

710710
private function _monitorIspConfigLog() {
@@ -729,7 +729,7 @@ private function _monitorIspConfigLog() {
729729
$app->dbmaster->query($sql);
730730

731731
/* The new data is written, now we can delete the old one */
732-
$this->_delOldRecords($type, $res['server_id']);
732+
$this->_delOldRecords($res['type'], $res['server_id']);
733733
}
734734

735735
/**

0 commit comments

Comments
 (0)