From c81135c13dc67b6153d853a1bc721a9b5e0271e7 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Tue, 25 Apr 2023 10:17:37 +0200 Subject: [PATCH] fix unknown part --- src/ManageVars.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ManageVars.php b/src/ManageVars.php index 799ba62..6125a4e 100644 --- a/src/ManageVars.php +++ b/src/ManageVars.php @@ -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; } }