mirror of
https://github.com/easy-wi/developer.git
synced 2025-02-20 11:23:28 +08:00
#236: Undefined index: active at statuscheck.php
This commit is contained in:
parent
58f470365c
commit
bf66d1365e
@ -87,7 +87,7 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
|
||||
$query = $sql->prepare("SELECT `active` FROM `modules` WHERE `id`=5 LIMIT 1");
|
||||
$query->execute();
|
||||
$lendActive = $query->fetchColumn();
|
||||
$lendActive = (active_check($lendActive)) ? $lendActive : 'Y';
|
||||
$lendActive = (active_check($lendActive)) ? $lendActive : 'N';
|
||||
|
||||
# Pick up Reseller and Lend Settings
|
||||
$resellersettings = array();
|
||||
@ -929,7 +929,7 @@ if (!isset($ip) or $ui->escaped('SERVER_ADDR', 'server') == $ip or in_array($ip,
|
||||
} else if (isset($ts3id)) {
|
||||
$uptime = 1;
|
||||
$usedslots = 0;
|
||||
if ($lendserver == 'Y' and $resellersettings[$resellerid]['active'] == 'Y') {
|
||||
if ($lendserver == 'Y' and $lendActive == 'Y') {
|
||||
$removedeadvoiceserver = $sql->prepare("DELETE FROM `lendedserver` WHERE `serverid`=? LIMIT 1");
|
||||
$removedeadvoiceserver->execute(array($ts3id));
|
||||
} else if ($active == 'Y' and $vs != 'online' and $olduptime>1 and $olduptime != null) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user