PHP/Compat

* fixed misc issues Intellisense was nice enough to highlight.
 * mostly deprecated usage of uninitialized parameters
 * class GenericPage still needs a long, hard look and a refactor
This commit is contained in:
Sarjuuk
2024-03-11 19:40:30 +01:00
parent 3e6e43fd68
commit ec1a2afc5f
75 changed files with 387 additions and 223 deletions

View File

@@ -10,6 +10,8 @@ class NpcsPage extends GenericPage
{
use TrListPage;
protected $petFamPanel = false;
protected $type = Type::NPC;
protected $tpl = 'npcs';
protected $path = [0, 4];
@@ -45,8 +47,6 @@ class NpcsPage extends GenericPage
$conditions[] = ['type', $this->category[0]];
$this->petFamPanel = $this->category[0] == 1;
}
else
$this->petFamPanel = false;
if ($_ = $this->filterObj->getConditions())
$conditions[] = $_;