fix: regDevs usage to allow more flexibility for STARTER (#860)

* fix: regDevs usage to allow more flexibility for STARTER

* fix: lint and type-check
This commit is contained in:
Zack Spear
2024-03-20 21:50:02 +09:00
committed by GitHub
parent 0569339a41
commit ecb3ed5003
6 changed files with 38 additions and 37 deletions

View File

@@ -270,7 +270,7 @@ class ServerState
"osVersionBranch" => $this->osVersionBranch,
"protocol" => _var($_SERVER, 'REQUEST_SCHEME'),
"rebootType" => $this->rebootDetails->getRebootType(),
"regDev" => @(int)$this->var['regDev'] ?? 0,
"regDevs" => @(int)$this->var['regDevs'] ?? 0,
"regGen" => @(int)$this->var['regGen'],
"regGuid" => @$this->var['regGUID'] ?? '',
"regTo" => @htmlspecialchars($this->var['regTo'], ENT_HTML5, 'UTF-8') ?? '',