From 3db6d223c7fe79e50ebdf63e6f8760919fd6df71 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 21 Feb 2024 09:42:16 +0100 Subject: [PATCH] Bug 36098: Default to 'file' if pref does not exist During the installer process there is a bunch of warnings "Use of uninitialized value $storage_method in string eq at" --- Koha/Session.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Session.pm b/Koha/Session.pm index d9e9f79dd60..bb5b26e9ce7 100644 --- a/Koha/Session.pm +++ b/Koha/Session.pm @@ -53,7 +53,7 @@ will be created. sub _get_session_params { my ( $class, $args ) = @_; my $storage_method = $args->{storage_method}; - $storage_method ||= C4::Context->preference('SessionStorage'); + $storage_method ||= C4::Context->preference('SessionStorage') || 'file'; if ( $storage_method eq 'mysql' ) { my $dbh = C4::Context->dbh; return { dsn => "serializer:yamlxs;driver:MySQL;id:md5", dsn_args => { Handle => $dbh } }; -- 2.34.1