From 135338e4a120b715b8d8a06bdada83f2d7815b52 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 20 Mar 2024 08:51:06 +0100 Subject: [PATCH] Bug 36367: Set to undef when unsetting We usually test if C4::Context->userenv, so we need to undef when unsetting, not {} (evaluated true) Signed-off-by: Julian Maurice Signed-off-by: Martin Renvoize --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 8366148b516..8d49feda7c4 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -703,7 +703,7 @@ Destroys user environment variables. sub unset_userenv { - $context->{userenv} = {}; + $context->{userenv} = undef; } -- 2.45.1