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 <magnus@libriotech.no> Warning disappears after applying the patch. Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
d84ed89557
commit
59ca80f2a1
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue