From bc0dec3dc4d0ac6e56e5b23ebbf75d3c5cb0bc89 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 9 Jan 2009 12:16:43 -0600 Subject: [PATCH] bug 2505: more warnings fixes in C4/Context.pm * more portable way to determine uname for crash messages * C4::Context->userenv now returns undef instead of 0 if no userenv has been set yet; returning undef when necessary is almost always better than returning a scalar when a hashref is normally expected. Signed-off-by: Galen Charlton Signed-off-by: Henri-Damien LAURENT --- C4/Context.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index 71a6b16740..2f2bc96c17 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -16,7 +16,6 @@ package C4::Context; # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place, # Suite 330, Boston, MA 02111-1307 USA -use warnings; use strict; use warnings; use vars qw($VERSION $AUTOLOAD $context @context_stack); -- 2.39.5