[Koha-bugs] [Bug 11077] Correct silent warnings in C4/Auth.pm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 24 14:22:05 CEST 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11077

--- Comment #9 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Comment on attachment 22125
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=22125
Bug 11077: Uninitialized value $pki_field warning

Review of attachment 22125:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=11077&attachment=22125)
-----------------------------------------------------------------

::: C4/Auth.pm
@@ +754,5 @@
>              -value    => $session->id,
>              -HttpOnly => 1
>          );
> +        $userid = $query->param('userid');
> +        my $pki_field = C4::Context->preference('AllowPKIAuth') // 'None';

I am not sure it is a good idea to suppress the warning caused by an undefined
syspref. This syspref should exist in the DB, else something wrong happened
when updating the DB. Logs must contain this alert.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list