From 9725b00cdfa152d26d213bf4925d1aa186a84314 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) --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index f9b5ccf2bb1..014433cce1d 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -702,7 +702,7 @@ Destroys user environment variables. sub unset_userenv { - $context->{userenv} = {}; + $context->{userenv} = undef; } -- 2.34.1