Bug 12367 - Import patrons still says "MD5 hash"
[koha_fer] / Koha / Cache.pm
index 0b5e499..1638324 100644 (file)
@@ -234,6 +234,8 @@ the caching layer anyway.
 The cache object to use if you want to provide your own. It should be an
 instance of C<Cache::*> and follow the same interface as L<Cache::Memcache>.
 
+=back
+
 =cut
 
 sub set_in_cache {
@@ -453,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'};
     }