[Koha-bugs] [Bug 8198] Need to track the call to "C4::Context->userenv->{'xxxx'} without check if it is undefined
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 31 17:30:00 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8198
Jonathan Druart <jonathan.druart at biblibre.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jonathan.druart at biblibre.co
| |m
--- Comment #2 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Maybe the following change would do the trick:
diff --git a/C4/Context.pm b/C4/Context.pm
index cc93af4..14ce1c7 100644
--- a/C4/Context.pm
+++ b/C4/Context.pm
@@ -1085,7 +1085,7 @@ sub userenv {
if (defined $var and defined $context->{"userenv"}->{$var}) {
return $context->{"userenv"}->{$var};
} else {
- return;
+ return {};
}
}
Need to be confirmed.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list