From c80cd97b68c76312062780783427542a5268c61f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 10 Mar 2017 09:17:02 +0100 Subject: [PATCH] Bug 18215: Fix another tls warning Resolve warning: Use of uninitialized value in string eq at C4/Installer.pm line 79. Test plan: Add a trivial .sql file in atomicupdate (comment is sufficient). Run updatedatabase.pl Without the patch you have the warning. Apply the patch and repeat (no warning). Signed-off-by: Marcel de Rooy Signed-off-by: Brendan A Gallagher --- C4/Installer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Installer.pm b/C4/Installer.pm index e8692a1afa..866d1f2d73 100644 --- a/C4/Installer.pm +++ b/C4/Installer.pm @@ -76,7 +76,7 @@ sub new { $self->{'user'} = C4::Context->config("user"); $self->{'password'} = C4::Context->config("pass"); $self->{'tls'} = C4::Context->config("tls"); - if ($self->{'tls'} eq 'yes'){ + if( $self->{'tls'} && $self->{'tls'} eq 'yes' ) { $self->{'ca'} = C4::Context->config('ca'); $self->{'cert'} = C4::Context->config('cert'); $self->{'key'} = C4::Context->config('key'); -- 2.39.5