From 32cb2298d1a1670b65973863983a216addc95f2e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Wed, 5 Mar 2014 14:42:15 +0100 Subject: [PATCH] Bug 11893: Get rid of warning from IsSuperLibrarian Content-Type: text/plain; charset=utf-8 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? --- C4/Context.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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.7.6