Bug 12041: UT - Get rid of warnings
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 22 May 2014 13:47:55 +0000 (15:47 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 19 Jun 2014 16:05:22 +0000 (13:05 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Cache.pm

index 358a9a4..1638324 100644 (file)
@@ -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'};
     }