fix unknown part

This commit is contained in:
Jean-Christian 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;
}
}