From 59ca80f2a181a18cb0d568b7ca86d1da99f9748b Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 6 Mar 2017 10:39:18 +0100 Subject: [PATCH] Bug 18215: Resolve warning on $tls in Database.pm Resolve this warning: updatedatabase.pl: Use of uninitialized value $tls in string eq at /usr/share/koha/masterclone/Koha/Database.pm line 63. Test plan: [1] Check if you do not see the warning anymore. Signed-off-by: Magnus Enger Warning disappears after applying the patch. Signed-off-by: Kyle M Hall --- Koha/Database.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Database.pm b/Koha/Database.pm index c5b2b73b8a..df259c5ec4 100644 --- a/Koha/Database.pm +++ b/Koha/Database.pm @@ -60,7 +60,7 @@ sub _new_schema { my $db_passwd = $context->config("pass"); my $tls = $context->config("tls"); my $tls_options; - if ($tls eq 'yes'){ + if( $tls && $tls eq 'yes' ) { my $ca = $context->config('ca'); my $cert = $context->config('cert'); my $key = $context->config('key'); -- 2.39.5