From 7b39562c7c3f54b86ba2202d57d3bb8ef74d3f91 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 22 May 2014 15:47:55 +0200 Subject: [PATCH] Bug 12041: UT - Get rid of warnings Signed-off-by: Jonathan Druart --- Koha/Cache.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 358a9a4..1638324 100644 --- a/Koha/Cache.pm +++ b/Koha/Cache.pm @@ -455,7 +455,7 @@ sub _set_tied_defaults { $args->{'timeout'} = '600' unless defined( $args->{'timeout'} ); $args->{'inprocess'} = '0' unless defined( $args->{'inprocess'} ); - unless ( lc( $args->{'cache_type'} ) eq 'null' ) { + unless ( $args->{cache_type} and lc( $args->{cache_type} ) eq 'null' ) { $args->{'cache'} = $self; $args->{'cache_type'} ||= $ENV{'CACHING_SYSTEM'}; } -- 2.0.0.rc2