fix unknown part

This commit is contained in:
Jean-Christian Paul Denis 2023-04-25 10:17:37 +02:00
parent ff09cf264e
commit c81135c13d
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

@ -47,7 +47,7 @@ class ManageVars
$combo = [];
foreach ($this->cleaners->dump() as $k) {
$combo[$k->name] = $k->id;
if ($k->id == $_REQUEST['part']) {
if ($k->id == ($_REQUEST['part'] ?? '/')) {
$cleaner = $k;
}
}