From 41d3e534d2663a54e06b033f634cba6aa9779473 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Fri, 7 Aug 2009 13:40:54 -0500 Subject: [PATCH] Fix Maintenance page. Without this, the mainenance page would not display because of: Cannot use undefined value as a HASH reference in C4/Auth.pm Signed-off-by: Galen Charlton --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index afe5fbfea5..871c124aad 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -357,7 +357,7 @@ sub get_template_and_user { XSLTDetailsDisplay => C4::Context->preference("XSLTDetailsDisplay"), XSLTResultsDisplay => C4::Context->preference("XSLTResultsDisplay"), hidelostitems => C4::Context->preference("hidelostitems"), - mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst")) ? C4::Context->userenv->{'branch'} : '', + mylibraryfirst => (C4::Context->preference("SearchMyLibraryFirst") && C4::Context->userenv) ? C4::Context->userenv->{'branch'} : '', opaclayoutstylesheet => "" . C4::Context->preference("opaclayoutstylesheet"), opaccolorstylesheet => "" . C4::Context->preference("opaccolorstylesheet"), opacstylesheet => "" . C4::Context->preference("opacstylesheet"), -- 2.39.5