From c406a6df9df0cc69f09cdd60ac8dd4c31cb9655b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 5 Mar 2014 14:42:15 +0100 Subject: [PATCH] [Signed-off] Bug 11893: Get rid of warning from IsSuperLibrarian MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Test plan: [1] Do not yet apply this patch [2] Add a patron. Do not set permissions. [3] Login with this patron in OPAC. [4] Check the log for warning on Context.pm line 1254. [5] Apply patch. [6] Login again. No warning anymore? Followed test plan. Patch is OK. Signed-off-by: Marc VĂ©ron --- C4/Context.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Context.pm b/C4/Context.pm index f58092d..bf87efa 100644 --- a/C4/Context.pm +++ b/C4/Context.pm @@ -1251,7 +1251,7 @@ sub IsSuperLibrarian { return 1; } - return $userenv->{flags} % 2; + return ($userenv->{flags}//0) % 2; } 1; -- 1.7.10.4