From: Jonathan Druart Date: Thu, 22 May 2014 13:47:55 +0000 (+0200) Subject: Bug 12041: UT - Get rid of warnings X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=91dae88abbe08b4e873cea9a6d6adb490dad12f1;p=koha_fer Bug 12041: UT - Get rid of warnings Signed-off-by: Jonathan Druart Signed-off-by: Tomas Cohen Arazi --- diff --git a/Koha/Cache.pm b/Koha/Cache.pm index 358a9a4b0a..1638324792 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'}; }