From 771f9a42a96f3ec9e72b571c8ac9f6404d5200c6 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 Signed-off-by: Henri-Damien LAURENT --- C4/Auth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Auth.pm b/C4/Auth.pm index 3c0ddd53cf..22ea838450 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -341,7 +341,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