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" Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commite2440f2c61
) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commita42bce58b2
) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
95b2160129
commit
922928eb7d
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ will be created.
|
||||||
sub _get_session_params {
|
sub _get_session_params {
|
||||||
my ( $class, $args ) = @_;
|
my ( $class, $args ) = @_;
|
||||||
my $storage_method = $args->{storage_method};
|
my $storage_method = $args->{storage_method};
|
||||||
$storage_method ||= C4::Context->preference('SessionStorage');
|
$storage_method ||= C4::Context->preference('SessionStorage') || 'file';
|
||||||
if ( $storage_method eq 'mysql' ) {
|
if ( $storage_method eq 'mysql' ) {
|
||||||
my $dbh = C4::Context->dbh;
|
my $dbh = C4::Context->dbh;
|
||||||
return { dsn => "serializer:yamlxs;driver:MySQL;id:md5", dsn_args => { Handle => $dbh } };
|
return { dsn => "serializer:yamlxs;driver:MySQL;id:md5", dsn_args => { Handle => $dbh } };
|
||||||
|
|
Loading…
Reference in a new issue